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 \