浏览代码

Setting static ip address

Bob Mottram 8 年前
父节点
当前提交
6932df7fdb
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2
    1
      src/freedombone-controlpanel

+ 2
- 1
src/freedombone-controlpanel 查看文件

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