Browse Source

Update pihole before restarting the network

Bob Mottram 8 years ago
parent
commit
fc9d76452e
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      src/freedombone-controlpanel

+ 3
- 1
src/freedombone-controlpanel View File

@@ -1375,6 +1375,9 @@ Enter a static local IP address for this system.\n\nIt will typically be 192.168
1375 1375
             echo ''
1376 1376
             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.'
1377 1377
 
1378
+            function_check pihole_change_ipv4
1379
+            pihole_change_ipv4 ${NEW_STATIC_IP}
1380
+
1378 1381
             systemctl restart networking
1379 1382
 
1380 1383
             # 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
1384 1387
                 dialog --title $"Static local IP address" \
1385 1388
                        --msgbox $"The IP address of this system is now set to ${NEW_STATIC_IP}" 6 50
1386 1389
             else
1387
-                pihole_change_ipv4 ${NEW_STATIC_IP}
1388 1390
                 dialog --title $"Static local IP address" \
1389 1391
                        --backtitle $"Freedombone Control Panel" \
1390 1392
                        --defaultno \