Update pihole after static IP assignment
This commit is contained in:
parent
5efb151d00
commit
8234215a24
|
@ -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 '# network 192.168.7.0' >> /etc/network/interfaces
|
||||||
echo '# gateway 192.168.7.1' >> /etc/network/interfaces
|
echo '# gateway 192.168.7.1' >> /etc/network/interfaces
|
||||||
|
|
||||||
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
|
||||||
IPv4_address=$(get_ipv4_address)
|
IPv4_address=$(get_ipv4_address)
|
||||||
if [[ "$IPv4_address" == "${NEW_STATIC_IP}"* ]]; then
|
if [[ "$IPv4_address" == "${NEW_STATIC_IP}"* ]]; then
|
||||||
|
pihole_update
|
||||||
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