diff options
author | Felix Fietkau <nbd@openwrt.org> | 2008-09-07 15:22:25 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2008-09-07 15:22:25 +0000 |
commit | fefd23fe1302f92b32c230f3ba2360055349331d (patch) | |
tree | 70110b0c607045f3129761450e519120a4970a3e /package/dnsmasq | |
parent | e15237af0ab7623a3a4f3ffc59e5578f115cf4ba (diff) | |
download | upstream-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')
-rw-r--r-- | package/dnsmasq/files/dnsmasq.init | 5 |
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 } |