Don't restart dnsmasq needlessly.
authorRoy Marples <roy@marples.name>
Fri, 30 Mar 2012 09:36:56 +0000 (09:36 +0000)
committerRoy Marples <roy@marples.name>
Fri, 30 Mar 2012 09:36:56 +0000 (09:36 +0000)
dnsmasq.in

index 1361327afa453b4680d5fbab051f581e6ea5a4da..498c373e2f2655b577319e35122f425fcd7f0e99 100644 (file)
@@ -142,14 +142,13 @@ if [ -n "$dnsmasq_conf" ]; then
        fi
 fi
 if [ -n "$dnsmasq_resolv" ]; then
+       # dnsmasq polls this file so no need to set changed=true
        if [ -f "$dnsmasq_resolv" ]; then
                if [ "$(cat "$dnsmasq_resolv")" != "$(printf %s "$newresolv")" ]
                then
-                       changed=true
                        printf %s "$newresolv" >"$dnsmasq_resolv"
                fi
        else
-               # dnsmasq polls this file so no need to set changed=true
                printf %s "$newresolv" >"$dnsmasq_resolv"
        fi
 fi