From 2c8a0b905fa887ff94e2027a1c66753e24214d66 Mon Sep 17 00:00:00 2001 From: nbd Date: Sun, 7 Sep 2008 15:22:25 +0000 Subject: [PATCH] restore the /tmp/resolv.conf symlink when stopping dnsmasq git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12546 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/dnsmasq/files/dnsmasq.init | 5 +++++ 1 file changed, 5 insertions(+) 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 }