1 #!/bin/sh /etc/rc.common
2 # Copyright (C) 2011 OpenWrt.org
8 SERVICE_PID_FILE
=/var
/run
/sysntpd.pid
11 [ -x $PROG ] ||
return 1
16 config_get peers
"$1" server
20 config_foreach getpeers timeserver
22 if [ -n "$peers" ]; then
25 for peer
in $peers; do
26 append args
"-p $peer"
29 service_start
/usr
/sbin
/ntpd
$args
34 service_stop
/usr
/sbin
/ntpd