spitballing idea for a whiptail dialog at this point. Copy to be decided!

Signed-off-by: Adam Warner <me@adamwarner.co.uk>
This commit is contained in:
Adam Warner
2021-03-06 22:08:35 +00:00
parent 2c1f5e4b9e
commit 83df5e93ec

View File

@@ -721,9 +721,12 @@ use4andor6() {
find_IPv4_information
if [[ -f "/etc/dhcpcd.conf" ]]; then
# configure networking via dhcpcd
# This function will _only_ be hit if dhcpcd5 is already installed (a la Raspbian)
getStaticIPv4Settings
setDHCPCD
if whiptail --backtitle "static?" --title "Existing dhcpcd installation detected" --yesno "TODO: Decide on wording, basically ask user if they want us to configure IP on raspbian or not. Maybe even use the OS detection from above so that we don't display this message on anything _but_ raspbian"; then
getStaticIPv4Settings
setDHCPCD
else
printf " %b Static IP address NOT set during installation. Please ensure you set this manually.\\n" "${INFO}"
fi
fi
fi
# If IPv6 is to be used,