Update pihole before restarting the network
This commit is contained in:
parent
0c9863f2bd
commit
fc9d76452e
|
@ -1375,6 +1375,9 @@ Enter a static local IP address for this system.\n\nIt will typically be 192.168
|
||||||
echo ''
|
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.'
|
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
|
systemctl restart networking
|
||||||
|
|
||||||
# see if the IP address has changed
|
# 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" \
|
dialog --title $"Static local IP address" \
|
||||||
--msgbox $"The IP address of this system is now set to ${NEW_STATIC_IP}" 6 50
|
--msgbox $"The IP address of this system is now set to ${NEW_STATIC_IP}" 6 50
|
||||||
else
|
else
|
||||||
pihole_change_ipv4 ${NEW_STATIC_IP}
|
|
||||||
dialog --title $"Static local IP address" \
|
dialog --title $"Static local IP address" \
|
||||||
--backtitle $"Freedombone Control Panel" \
|
--backtitle $"Freedombone Control Panel" \
|
||||||
--defaultno \
|
--defaultno \
|
||||||
|
|
Loading…
Reference in New Issue