From b5537cd360ba526f5f51c3b50aa75d49aabd55cd Mon Sep 17 00:00:00 2001 From: ryt51V Date: Sat, 27 Feb 2016 20:25:59 +0000 Subject: [PATCH] Prompt user to choose if they wish to reconfigure their network settings. --- automated install/basic-install.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index af9e40ec..e8afb225 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -192,9 +192,13 @@ use4andor6() { done if [ $useIPv4 ]; then - getStaticIPv4Settings - setStaticIPv4 - echo "::: Using IPv4 on $IPv4addr" + if (whiptail --backtitle "IPv4" --title "Reconfigure IPv4" --yesno "Do you wish to reconfigure your IPv4 settings? (If you have not changed these before on this Pi then choose yes.) + IPv4 address: $IPv4addr + Gateway: $IPv4gw" $r $c) then + getStaticIPv4Settings + setStaticIPv4 + fi + echo "::: Using IPv4 on $IPv4addr" else echo "::: Using IPv6 on $piholeIPv6" fi