From: nbd Date: Sun, 7 Sep 2008 15:22:25 +0000 (+0000) Subject: restore the /tmp/resolv.conf symlink when stopping dnsmasq X-Git-Url: http://207.154.207.93/?a=commitdiff_plain;h=2c8a0b905fa887ff94e2027a1c66753e24214d66;p=10.03%2Fopenwrt.git restore the /tmp/resolv.conf symlink when stopping dnsmasq git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12546 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/package/dnsmasq/files/dnsmasq.init b/package/dnsmasq/files/dnsmasq.init index 79e57d5f3..864334957 100644 --- a/package/dnsmasq/files/dnsmasq.init +++ b/package/dnsmasq/files/dnsmasq.init @@ -280,5 +280,10 @@ start() { } stop() { + [ -f /tmp/resolv.conf ] && { + rm -f /tmp/resolv.conf + ln -s /tmp/resolv.conf.auto /tmp/resolv.conf + } killall dnsmasq + return 0 }