From e7363daa769b76c6be37e0f9f9f4d9d8fc27d801 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 19 Oct 2016 11:37:19 +0100 Subject: [PATCH] Update pihole after setting a static local IP address --- src/freedombone-controlpanel | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/freedombone-controlpanel b/src/freedombone-controlpanel index ccc4c78e..3ef6949c 100755 --- a/src/freedombone-controlpanel +++ b/src/freedombone-controlpanel @@ -1373,6 +1373,12 @@ 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 fi + + # if pi-hole is installed then update the IP address it uses + if [ -f /usr/local/bin/pihole ]; then + function_check pihole_update + pihole_update + fi fi }