From 5efb151d0042e51b31af4fcd118a0162b3ffd50c Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 19 Oct 2016 12:39:08 +0100 Subject: [PATCH] Simplify --- src/freedombone-controlpanel | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/freedombone-controlpanel b/src/freedombone-controlpanel index 6008e392..ebe15121 100755 --- a/src/freedombone-controlpanel +++ b/src/freedombone-controlpanel @@ -1306,11 +1306,6 @@ Enter a static local IP address for this system.\n\nIt will typically be 192.168 if [[ "$NEW_STATIC_IP" != *"."* ]]; then return fi - if grep -q 'iface eth0 inet static' /etc/network/interfaces; then - if [[ "$NEW_STATIC_IP" != "$STATIC_IP" ]]; then - sed -i "s|${STATIC_IP}|${NEW_STATIC_IP}|g" /etc/network/interfaces - fi - fi ;; esac @@ -1326,12 +1321,6 @@ Enter a static local IP address for this system.\n\nIt will typically be 192.168 if [[ "$NEW_STATIC_GATEWAY" != *"."* ]]; then return fi - if grep -q 'iface eth0 inet static' /etc/network/interfaces; then - if [[ "$NEW_STATIC_GATEWAY" != "$STATIC_GATEWAY" ]]; then - sed -i "s|${STATIC_GATEWAY}|${NEW_STATIC_GATEWAY}|g" /etc/network/interfaces - fi - return - fi ;; esac