From 8234215a2421010fad6c0536c8d4c5856159f6e4 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 19 Oct 2016 12:42:20 +0100 Subject: [PATCH] Update pihole after static IP assignment --- src/freedombone-controlpanel | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/freedombone-controlpanel b/src/freedombone-controlpanel index ebe15121..22c51722 100755 --- a/src/freedombone-controlpanel +++ b/src/freedombone-controlpanel @@ -1369,16 +1369,16 @@ Enter a static local IP address for this system.\n\nIt will typically be 192.168 echo '# network 192.168.7.0' >> /etc/network/interfaces echo '# gateway 192.168.7.1' >> /etc/network/interfaces - pihole_change_ipv4 ${NEW_STATIC_IP} - systemctl restart networking # see if the IP address has changed IPv4_address=$(get_ipv4_address) if [[ "$IPv4_address" == "${NEW_STATIC_IP}"* ]]; then + pihole_update dialog --title $"Static local IP address" \ --msgbox $"The IP address of this system is now set to ${NEW_STATIC_IP}" 6 50 else + pihole_change_ipv4 ${NEW_STATIC_IP} dialog --title $"Static local IP address" \ --backtitle $"Freedombone Control Panel" \ --defaultno \