]>
git.ipfire.org Git - people/pmueller/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 [ $
(pidof wpa_supplicant
) ]; then
14 if [ ! -e /var
/ipfire
/red
/active
]; then
16 boot_mesg
-n "Wait for wlan"
17 for (( i
=30; i
>1; i--
)) do
18 if [ -e /var
/ipfire
/red
/active
]; then
27 if [ -e /var
/ipfire
/red
/active
]; then
29 loadproc
/usr
/local
/bin
/settime $
(cat /var
/ipfire
/time
/settime.conf
)
31 boot_mesg
" ERROR! Not online!"
36 boot_mesg
"Starting ntpd..."
37 loadproc
/usr
/bin
/ntpd
-Ap /var
/run
/ntpd.pid
41 boot_mesg
"Stopping ntpd..."
42 killproc
/usr
/bin
/ntpd
52 statusproc
/usr
/bin
/ntpd
56 echo "Usage: $0 {start|stop|restart|status}"
61 # End $rc_base/init.d/ntp