CRUX-ARM : Home

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