]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - src/ppp/ip-up
Add short delay to dialer and fix umts/gprs dns work arround
[people/pmueller/ipfire-2.x.git] / src / ppp / ip-up
index 5c456992141b1d87ad6ba20eaf76d2edc47b4fe0..ab01ad38b71f8eea2216d8e64906cfed615f91db 100644 (file)
@@ -32,12 +32,15 @@ if [ "$DNS" == "Automatic" ]; then
                echo -n "$MS_DNS1" > /var/ipfire/red/dns1
                echo -n "$MS_DNS2" > /var/ipfire/red/dns2
        else
-               if [ "$PRIMARY_DNS" != "10.11.12.13" || "$SECONDARY_DNS" != "10.11.12.14" ]; then
-                       echo -n "$PRIMARY_DNS" > /var/ipfire/red/dns1
-                       echo -n "$SECONDARY_DNS" > /var/ipfire/red/dns2
-               else
+               if [ "$PRIMARY_DNS" == "10.11.12.13" ]; then
                        echo -n "$DNS1" > /var/ipfire/red/dns1
+               else
+                       echo -n "$PRIMARY_DNS" > /var/ipfire/red/dns1
+               fi
+               if [ "$SECONDARY_DNS" == "10.11.12.14" ]; then
                        echo -n "$DNS2" > /var/ipfire/red/dns2
+               else
+                       echo -n "$SECONDARY_DNS" > /var/ipfire/red/dns2
                fi
        fi
 else