From fa597cbb123e1b7fd7326679d0a52b812dd4b955 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Mon, 17 Sep 2018 19:31:09 +0200 Subject: [PATCH] another ntpd fix in /etc/init.d/dhcpc-event --- fs-add/etc/init.d/dhcpc-event | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fs-add/etc/init.d/dhcpc-event b/fs-add/etc/init.d/dhcpc-event index 7baab6a13..77c9ccacb 100755 --- a/fs-add/etc/init.d/dhcpc-event +++ b/fs-add/etc/init.d/dhcpc-event @@ -46,7 +46,9 @@ renew|bound) echo "nameserver $i" >> $RESOLV_CONF done # kill always ntpd - killall -9 ntpd 2> /dev/null + if test -r /var/run/ntpd.pid; then + kill -9 $(cat /var/run/ntpd.pid) 2> /dev/null + fi # notify satip init script echo "ok" | nc 127.0.0.1 999 2> /dev/null sleep 0.5