Browse Source

Setting static ip address

Bob Mottram 8 years ago
parent
commit
6932df7fdb
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      src/freedombone-controlpanel

+ 2
- 1
src/freedombone-controlpanel View File

@@ -1481,8 +1481,9 @@ Enter a static local IP address for this system.\n\nIt will typically be ${IPv4_
1481 1481
     esac
1482 1482
 
1483 1483
     if [[ "$NEW_STATIC_GATEWAY" == *"."* && "$NEW_STATIC_IP" == *"."* ]]; then
1484
-        ip_addresses_have_changed=
1484
+        ip_addresses_have_changed=1
1485 1485
         if [ -f /etc/network/interfaces.d/static ]; then
1486
+            ip_addresses_have_changed=
1486 1487
             if ! grep -q "address ${NEW_STATIC_IP}" /etc/network/interfaces.d/static; then
1487 1488
                 ip_addresses_have_changed=1
1488 1489
             fi