From fefd23fe1302f92b32c230f3ba2360055349331d Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 7 Sep 2008 15:22:25 +0000 Subject: [PATCH] restore the /tmp/resolv.conf symlink when stopping dnsmasq SVN-Revision: 12546 --- 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 79e57d5f3ce..8643349573d 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 } -- 2.30.2