From fefd23fe1302f92b32c230f3ba2360055349331d Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 7 Sep 2008 15:22:25 +0000 Subject: restore the /tmp/resolv.conf symlink when stopping dnsmasq SVN-Revision: 12546 --- package/dnsmasq/files/dnsmasq.init | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'package') diff --git a/package/dnsmasq/files/dnsmasq.init b/package/dnsmasq/files/dnsmasq.init index 79e57d5f3c..8643349573 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 } -- cgit v1.2.3