]>
git.ipfire.org Git - people/teissler/ipfire-2.x.git/blob - src/initscripts/init.d/ntp
2 # Begin $rc_base/init.d/ntp
7 eval $
(/usr
/local
/bin
/readhash
/var
/ipfire
/time
/settings
)
11 if [ "$ENABLESETONBOOT" == "on" ]; then
12 boot_mesg
-n "Setting time on boot..."
13 if [ ! -e /var
/ipfire
/red
/active
]; then
15 boot_mesg
-n "Wait for online connection"
16 for (( i
=30; i
>1; i--
)) do
17 if [ -e /var
/ipfire
/red
/active
]; then
25 if [ -e /var
/ipfire
/red
/active
]; then
27 loadproc
/usr
/local
/bin
/settime $
(cat /var
/ipfire
/time
/settime.conf
)
29 boot_mesg
" not online!"
34 boot_mesg
"Starting ntpd..."
35 loadproc
/usr
/bin
/ntpd
-Ap /var
/run
/ntpd.pid
39 boot_mesg
"Stopping ntpd..."
40 killproc
/usr
/bin
/ntpd
50 statusproc
/usr
/bin
/ntpd
54 echo "Usage: $0 {start|stop|restart|status}"
59 # End $rc_base/init.d/ntp