This commit is contained in:
Bob Mottram 2016-10-19 12:39:08 +01:00
parent a223b6e19b
commit 5efb151d00
1 changed files with 0 additions and 11 deletions

View File

@ -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 if [[ "$NEW_STATIC_IP" != *"."* ]]; then
return return
fi 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 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 if [[ "$NEW_STATIC_GATEWAY" != *"."* ]]; then
return return
fi 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 esac