restore the /tmp/resolv.conf symlink when stopping dnsmasq

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12546 3c298f89-4303-0410-b956-a3cf2f4a3e73
master
Felix Fietkau 2008-09-07 15:22:25 +00:00
parent 02e21c951c
commit 0ea2967af9
1 changed files with 5 additions and 0 deletions

View 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
}