From 6932df7fdbf0adeb71aff301f955d99a52c502c6 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 22 Jun 2017 21:17:35 +0100 Subject: [PATCH] Setting static ip address --- src/freedombone-controlpanel | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/freedombone-controlpanel b/src/freedombone-controlpanel index cde1b6f4..90d0cc75 100755 --- a/src/freedombone-controlpanel +++ b/src/freedombone-controlpanel @@ -1481,8 +1481,9 @@ Enter a static local IP address for this system.\n\nIt will typically be ${IPv4_ esac if [[ "$NEW_STATIC_GATEWAY" == *"."* && "$NEW_STATIC_IP" == *"."* ]]; then - ip_addresses_have_changed= + ip_addresses_have_changed=1 if [ -f /etc/network/interfaces.d/static ]; then + ip_addresses_have_changed= if ! grep -q "address ${NEW_STATIC_IP}" /etc/network/interfaces.d/static; then ip_addresses_have_changed=1 fi