]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - src/initscripts/init.d/ntp
Fix type /etc/init.d/ntp (booot).
[people/pmueller/ipfire-2.x.git] / src / initscripts / init.d / ntp
index 825a0e810cdd8d38ed34ac97f6cafb94fae66e57..92f174d8afdd356d3689856ccad5acd2d35bf2b4 100644 (file)
@@ -4,8 +4,15 @@
 . /etc/sysconfig/rc
 . $rc_functions
 
+eval $(/usr/local/bin/readhash /var/ipfire/time/settings)
+
 case "$1" in
        start)
+               if [ "$ENABLESETONBOOT" == "on" ]; then
+                       boot_mesg "Setting time on boot..."
+                       loadproc /usr/local/bin/settime $(cat /var/ipfire/time/settime.conf)
+               fi  
+
                boot_mesg "Starting ntpd..."
                loadproc /usr/bin/ntpd -Ap /var/run/ntpd.pid
                ;;