CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
fltk2: Updated to version r7513.
[attic/ports/opt-cross.git] / ntp / ntpd
1 #!/bin/sh
2 #
3 # /etc/rc.d/ntpd: start/stop ntp daemon
4 #
5
6 case $1 in
7 start)
8 /usr/bin/ntpd -gqx
9 /usr/bin/ntpd
10 ;;
11 stop)
12 /sbin/hwclock -w
13 killall -q /usr/bin/ntpd
14 ;;
15 restart)
16 $0 stop && sleep 3 && $0 start
17 ;;
18 *)
19 echo "usage: $0 [start|stop|restart]"
20 ;;
21 esac
22
23 # End of file