Browse Source

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

SVN-Revision: 12546
Felix Fietkau 17 years ago
parent
commit
fefd23fe13
1 changed files with 5 additions and 0 deletions
  1. 5 0
      package/dnsmasq/files/dnsmasq.init

+ 5 - 0
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
 }