Bob Mottram 8 anni fa
parent
commit
5efb151d00
1 ha cambiato i file con 0 aggiunte e 11 eliminazioni
  1. 0
    11
      src/freedombone-controlpanel

+ 0
- 11
src/freedombone-controlpanel Vedi File

1306
            if [[ "$NEW_STATIC_IP" != *"."* ]]; then
1306
            if [[ "$NEW_STATIC_IP" != *"."* ]]; then
1307
                return
1307
                return
1308
            fi
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
     esac
1310
     esac
1316
 
1311
 
1326
            if [[ "$NEW_STATIC_GATEWAY" != *"."* ]]; then
1321
            if [[ "$NEW_STATIC_GATEWAY" != *"."* ]]; then
1327
                return
1322
                return
1328
            fi
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
     esac
1325
     esac
1337
 
1326