restore the /tmp/resolv.conf symlink when stopping dnsmasq
authorFelix Fietkau <nbd@openwrt.org>
Sun, 7 Sep 2008 15:22:25 +0000 (15:22 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 7 Sep 2008 15:22:25 +0000 (15:22 +0000)
SVN-Revision: 12546

package/dnsmasq/files/dnsmasq.init

index 79e57d5..8643349 100644 (file)
@@ -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
 }