Explorar el Código

Setting static ip address

Bob Mottram hace 8 años
padre
commit
6932df7fdb
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2
    1
      src/freedombone-controlpanel

+ 2
- 1
src/freedombone-controlpanel Ver fichero

@@ -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