1 #!/bin/sh /etc/rc.common
2 # Copyright (C) 2011 OpenWrt.org
7 PID
=/var
/run
/sysntpd.pid
15 config_get peers
"$1" server
19 config_foreach getpeers timeserver
21 if [ -n "$peers" ]; then
24 for peer
in $peers; do
25 append args
"-p $peer"
28 start-stop-daemon
-x $BIN -m -p $PID -b -S -- $args
33 service_kill
${BIN##*/} $PID