aboutsummaryrefslogtreecommitdiffstats
path: root/package
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
commit0ea2967af95af8321179dafaf3cfddb643fc2bbb (patch)
tree587e6683feb42b0c9cb1833e5fbd28724734f009 /package
parent02e21c951cd99e1a8960a43cacc122beb4d96e9f (diff)
downloadupstream-0ea2967af95af8321179dafaf3cfddb643fc2bbb.tar.gz
upstream-0ea2967af95af8321179dafaf3cfddb643fc2bbb.tar.bz2
upstream-0ea2967af95af8321179dafaf3cfddb643fc2bbb.zip
restore the /tmp/resolv.conf symlink when stopping dnsmasq
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12546 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-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
}