aboutsummaryrefslogtreecommitdiffstats
path: root/package/dnsmasq/files
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-09-07 15:22:25 +0000
committerFelix Fietkau <nbd@openwrt.org>2008-09-07 15:22:25 +0000
commitfefd23fe1302f92b32c230f3ba2360055349331d (patch)
tree70110b0c607045f3129761450e519120a4970a3e /package/dnsmasq/files
parente15237af0ab7623a3a4f3ffc59e5578f115cf4ba (diff)
downloadupstream-fefd23fe1302f92b32c230f3ba2360055349331d.tar.gz
upstream-fefd23fe1302f92b32c230f3ba2360055349331d.tar.bz2
upstream-fefd23fe1302f92b32c230f3ba2360055349331d.zip
restore the /tmp/resolv.conf symlink when stopping dnsmasq
SVN-Revision: 12546
Diffstat (limited to 'package/dnsmasq/files')
-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 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
}