diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-06-10 20:05:21 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-06-10 20:05:21 +0000 |
commit | 3fe927c19c9a49ee5fec05135d9bcf726d05c2cc (patch) | |
tree | 468ef2474fcc9c2bf78fe1f05c0b1003819dcc3a /core/busybox-initscripts/rdate.initd | |
parent | ccdfcb03aa148b0f479fe14e6e654d34696b208f (diff) | |
download | aports-3fe927c19c9a49ee5fec05135d9bcf726d05c2cc.tar.bz2 aports-3fe927c19c9a49ee5fec05135d9bcf726d05c2cc.tar.xz |
core/busybox-initscripts: new aport
We move many scripts from alpine-baselayout to this package.
Diffstat (limited to 'core/busybox-initscripts/rdate.initd')
-rw-r--r-- | core/busybox-initscripts/rdate.initd | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/core/busybox-initscripts/rdate.initd b/core/busybox-initscripts/rdate.initd new file mode 100644 index 0000000000..3e6c6582c9 --- /dev/null +++ b/core/busybox-initscripts/rdate.initd @@ -0,0 +1,12 @@ +#!/sbin/runscript + +start() { + if [ -z "$NTP_HOST" ] ; then + eerror "Please set NTP_HOST in /etc/conf.d/rdate" + return 1 + fi + ebegin "Running busybox rdate" + rdate "$NTP_HOST" + eend $? +} + |