diff options
Diffstat (limited to 'main/busybox-initscripts/rdate.initd')
-rw-r--r-- | main/busybox-initscripts/rdate.initd | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/main/busybox-initscripts/rdate.initd b/main/busybox-initscripts/rdate.initd new file mode 100644 index 00000000..3e6c6582 --- /dev/null +++ b/main/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 $? +} + |