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 '# 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 \
|
||||
|
|
Loading…
Reference in New Issue