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
     esac
1481
     esac
1482
 
1482
 
1483
     if [[ "$NEW_STATIC_GATEWAY" == *"."* && "$NEW_STATIC_IP" == *"."* ]]; then
1483
     if [[ "$NEW_STATIC_GATEWAY" == *"."* && "$NEW_STATIC_IP" == *"."* ]]; then
1484
-        ip_addresses_have_changed=
1484
+        ip_addresses_have_changed=1
1485
         if [ -f /etc/network/interfaces.d/static ]; then
1485
         if [ -f /etc/network/interfaces.d/static ]; then
1486
+            ip_addresses_have_changed=
1486
             if ! grep -q "address ${NEW_STATIC_IP}" /etc/network/interfaces.d/static; then
1487
             if ! grep -q "address ${NEW_STATIC_IP}" /etc/network/interfaces.d/static; then
1487
                 ip_addresses_have_changed=1
1488
                 ip_addresses_have_changed=1
1488
             fi
1489
             fi