summaryrefslogtreecommitdiff
path: root/package/busybox
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2015-07-25 22:47:48 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2015-07-25 22:47:48 +0200
commit8de94346a4e6935c95658e113264358e6b927a88 (patch)
tree513211b2f73bf49e1966b85c7bb33e65747f5b1d /package/busybox
parenteff01a75ffd024cb8c0f30410aa304b7c12c1795 (diff)
parent21a5f16953c38f8fa5ab08bdb05d840103d2c44c (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/busybox')
-rw-r--r--package/busybox/Makefile2
-rw-r--r--package/busybox/files/busybox.postinst1
-rw-r--r--package/busybox/files/ntpdate.init20
3 files changed, 22 insertions, 1 deletions
diff --git a/package/busybox/Makefile b/package/busybox/Makefile
index 8b1d8b2c6..c8013b943 100644
--- a/package/busybox/Makefile
+++ b/package/busybox/Makefile
@@ -5,7 +5,7 @@ include $(ADK_TOPDIR)/rules.mk
PKG_NAME:= busybox
PKG_VERSION:= 1.23.2
-PKG_RELEASE:= 4
+PKG_RELEASE:= 5
PKG_HASH:= 05a6f9e21aad8c098e388ae77de7b2361941afa7157ef74216703395b14e319a
PKG_DESCR:= core utilities for embedded systems
PKG_SECTION:= base/apps
diff --git a/package/busybox/files/busybox.postinst b/package/busybox/files/busybox.postinst
index 75996525a..029998a98 100644
--- a/package/busybox/files/busybox.postinst
+++ b/package/busybox/files/busybox.postinst
@@ -8,4 +8,5 @@ add_rcconf syslogd NO
add_rcconf syslogd_flags '-C32'
add_rcconf inetd NO
add_rcconf ntpd NO
+add_rcconf ntpdate NO
add_rcconf ntpd_flags '-p time.fu-berlin.de'
diff --git a/package/busybox/files/ntpdate.init b/package/busybox/files/ntpdate.init
new file mode 100644
index 000000000..d812c6b47
--- /dev/null
+++ b/package/busybox/files/ntpdate.init
@@ -0,0 +1,20 @@
+#!/bin/sh
+#PKG busybox
+#INIT 55
+. /etc/rc.conf
+
+case $1 in
+autostop) ;;
+autostart)
+ test x"${ntpdate:-NO}" = x"NO" && exit 0
+ exec sh $0 start
+ ;;
+start)
+ /usr/sbin/ntpd -n -q $ntpd_flags
+ ;;
+*)
+ echo "Usage: $0 {start}"
+ exit 1
+ ;;
+esac
+exit $?