Encourage restart after setting static address
This commit is contained in:
parent
6ce080543d
commit
33c992814c
|
@ -1360,18 +1360,8 @@ Enter a static local IP address for this system.\n\nIt will typically be ${IPv4_
|
||||||
function_check pihole_change_ipv4
|
function_check pihole_change_ipv4
|
||||||
pihole_change_ipv4 ${NEW_STATIC_IP}
|
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
|
|
||||||
dialog --title $"Static local IP address" \
|
dialog --title $"Static local IP address" \
|
||||||
--backtitle $"Freedombone Control Panel" \
|
--backtitle $"Freedombone Control Panel" \
|
||||||
--defaultno \
|
|
||||||
--yesno $"\nFor the change to take effect your system will now need to reboot. Do this now?" 8 60
|
--yesno $"\nFor the change to take effect your system will now need to reboot. Do this now?" 8 60
|
||||||
sel=$?
|
sel=$?
|
||||||
case $sel in
|
case $sel in
|
||||||
|
@ -1379,7 +1369,6 @@ Enter a static local IP address for this system.\n\nIt will typically be ${IPv4_
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function wifi_settings {
|
function wifi_settings {
|
||||||
|
|
Loading…
Reference in New Issue