]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/ntp/files/ntp
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / ntp / files / ntp
1 #! /bin/sh
2
3 FLAGS="defaults 23"
4
5 test -f /usr/bin/ntpd || exit 0
6
7 case "$1" in
8         start)
9                 echo -n "Starting NTP server: ntpd"
10                 start-stop-daemon --start --quiet --exec /usr/bin/ntpd
11                 echo "."
12                 ;;
13         stop)
14                 echo -n "Stopping NTP server: ntpd"
15                 start-stop-daemon --stop --quiet --exec /usr/bin/ntpd
16                 echo "."
17                 ;;
18         restart|force-reload)
19                 echo -n "Restarting NTP server: ntpd... "
20                 start-stop-daemon --stop --quiet --exec /usr/bin/ntpd
21                 sleep 2
22                 start-stop-daemon --start --quiet --exec /usr/bin/ntpd
23                 echo "done."
24                 ;;
25         *)
26                 echo "Usage: /etc/init.d/ntp {start|stop|restart|force-reload}"
27                 exit 1
28                 ;;
29 esac
30
31 exit 0