From fc9d76452e83d8482531f049abcf3e181daa4108 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 19 Oct 2016 12:49:27 +0100 Subject: [PATCH] Update pihole before restarting the network --- src/freedombone-controlpanel | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/freedombone-controlpanel b/src/freedombone-controlpanel index a81a398c..3f0f37f6 100755 --- a/src/freedombone-controlpanel +++ b/src/freedombone-controlpanel @@ -1375,6 +1375,9 @@ Enter a static local IP address for this system.\n\nIt will typically be 192.168 echo '' echo $'If you logged in using the previous IP address then you may need to close this terminal and log in again on the new one.' + function_check pihole_change_ipv4 + pihole_change_ipv4 ${NEW_STATIC_IP} + systemctl restart networking # see if the IP address has changed @@ -1384,7 +1387,6 @@ Enter a static local IP address for this system.\n\nIt will typically be 192.168 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 \