summaryrefslogtreecommitdiff
path: root/package/busybox/files/ntpdate.init
blob: d812c6b47531d92aab04670c202599a86d27edc3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
#PKG busybox
#INIT 55
. /etc/rc.conf

case $1 in
autostop) ;;
autostart)
	test x"${ntpdate:-NO}" = x"NO" && exit 0
	exec sh $0 start
	;;
start)
	/usr/sbin/ntpd -n -q $ntpd_flags
	;;
*)
	echo "Usage: $0 {start}"
	exit 1
	;;
esac
exit $?