summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2008-09-07 15:22:25 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2008-09-07 15:22:25 +0000
commit2c8a0b905fa887ff94e2027a1c66753e24214d66 (patch)
tree587e6683feb42b0c9cb1833e5fbd28724734f009
parentd599603ffbd99d0df2eed0d3eb3419b46765565e (diff)
restore the /tmp/resolv.conf symlink when stopping dnsmasq
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12546 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--package/dnsmasq/files/dnsmasq.init5
1 files changed, 5 insertions, 0 deletions
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
}