From 4fdf79250a1db27b46367b91b5f30f157c855849 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Mon, 17 Sep 2018 09:38:39 +0200 Subject: [PATCH] init.d/dhcp-event: kill always ntpd on bound/rebound to use the correct DNS server --- fs-add/etc/init.d/dhcpc-event | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs-add/etc/init.d/dhcpc-event b/fs-add/etc/init.d/dhcpc-event index 2b1aea11..7baab6a1 100755 --- a/fs-add/etc/init.d/dhcpc-event +++ b/fs-add/etc/init.d/dhcpc-event @@ -30,7 +30,6 @@ renew|bound) logger -p local0.notice "DHCP IPv4 changed, killing minisatip" rm -f /tmp/satip-network killall -9 minisatip 2> /dev/null - killall -9 ntpd 2> /dev/null fi ifconfig $interface $ip $BROADCAST $NETMASK if test -n "$router" ; then @@ -46,6 +45,8 @@ renew|bound) for i in $dns ; do echo "nameserver $i" >> $RESOLV_CONF done + # kill always ntpd + killall -9 ntpd 2> /dev/null # notify satip init script echo "ok" | nc 127.0.0.1 999 2> /dev/null sleep 0.5