From fbf7d1cf3d82a440f23590553c7d80f962c416b1 Mon Sep 17 00:00:00 2001 From: ryt51V Date: Sat, 27 Feb 2016 21:21:44 +0000 Subject: [PATCH] Tab consistency. --- automated install/basic-install.sh | 38 +++++++++++++++--------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index e8afb225..ef8440e1 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -191,25 +191,25 @@ use4andor6() { esac done - if [ $useIPv4 ]; then - 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 - - if [ $useIPv6 ]; then - useIPv6dialog - echo "::: Using IPv6 on $piholeIPv6" - else - echo "::: IPv6 will NOT be used." - fi - + if [ $useIPv4 ]; then + 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 + + if [ $useIPv6 ]; then + useIPv6dialog + echo "::: Using IPv6 on $piholeIPv6" + else + echo "::: IPv6 will NOT be used." + fi + if [ ! $useIPv4 ] && [ ! $useIPv6 ]; then echo "::: Cannot continue, neither IPv4 or IPv6 selected" echo "::: Exiting"