From: Felix Fietkau Date: Sun, 7 Sep 2008 15:22:25 +0000 (+0000) Subject: restore the /tmp/resolv.conf symlink when stopping dnsmasq X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=fefd23fe1302f92b32c230f3ba2360055349331d;p=openwrt%2Fstaging%2Frmilecki.git restore the /tmp/resolv.conf symlink when stopping dnsmasq SVN-Revision: 12546 --- 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 }