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

+ 0
- 11
src/freedombone-controlpanel 查看文件

@@ -1306,11 +1306,6 @@ Enter a static local IP address for this system.\n\nIt will typically be 192.168
1306 1306
            if [[ "$NEW_STATIC_IP" != *"."* ]]; then
1307 1307
                return
1308 1308
            fi
1309
-           if grep -q 'iface eth0 inet static' /etc/network/interfaces; then
1310
-               if [[ "$NEW_STATIC_IP" != "$STATIC_IP" ]]; then
1311
-                   sed -i "s|${STATIC_IP}|${NEW_STATIC_IP}|g" /etc/network/interfaces
1312
-               fi
1313
-           fi
1314 1309
            ;;
1315 1310
     esac
1316 1311
 
@@ -1326,12 +1321,6 @@ Enter a static local IP address for this system.\n\nIt will typically be 192.168
1326 1321
            if [[ "$NEW_STATIC_GATEWAY" != *"."* ]]; then
1327 1322
                return
1328 1323
            fi
1329
-           if grep -q 'iface eth0 inet static' /etc/network/interfaces; then
1330
-               if [[ "$NEW_STATIC_GATEWAY" != "$STATIC_GATEWAY" ]]; then
1331
-                   sed -i "s|${STATIC_GATEWAY}|${NEW_STATIC_GATEWAY}|g" /etc/network/interfaces
1332
-               fi
1333
-               return
1334
-           fi
1335 1324
            ;;
1336 1325
     esac
1337 1326