mirror of https://github.com/OpenIPC/firmware.git
pull/93/head
parent
a14bac02f5
commit
ffde6843ea
general/overlay/etc/init.d
|
@ -3,7 +3,7 @@
|
|||
DAEMON="ntpd"
|
||||
PIDFILE="/var/run/$DAEMON.pid"
|
||||
|
||||
NTPD_ARGS=""
|
||||
NTPD_ARGS="-n"
|
||||
|
||||
# shellcheck source=/dev/null
|
||||
[ -r "/etc/default/$DAEMON" ] && . "/etc/default/$DAEMON"
|
||||
|
@ -14,7 +14,7 @@ start() {
|
|||
printf 'Starting %s: ' "$DAEMON"
|
||||
# shellcheck disable=SC2086 # we need the word splitting
|
||||
start-stop-daemon -b -m -S -q -p "$PIDFILE" -x "/usr/sbin/$DAEMON" \
|
||||
-- -n $NTPD_ARGS
|
||||
-- $NTPD_ARGS
|
||||
status=$?
|
||||
if [ "$status" -eq 0 ]; then
|
||||
echo "OK"
|
||||
|
|
Loading…
Reference in New Issue