From c0b43f3b7b1f71ee54fa443ae5e777133a28ec37 Mon Sep 17 00:00:00 2001 From: Chris Date: Sat, 19 May 2018 16:47:58 +0200 Subject: [PATCH] Add undocumented avoid_static_ip flag --- auto_install/install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/auto_install/install.sh b/auto_install/install.sh index 8c78d1d..1cffd66 100755 --- a/auto_install/install.sh +++ b/auto_install/install.sh @@ -48,6 +48,7 @@ c=$(( c < 70 ? 70 : c )) skipSpaceCheck=false reconfigure=false runUnattended=false +skipStaticIpSetup=false # Find IP used to route to outside world @@ -1286,6 +1287,7 @@ main() { "--reconfigure" ) reconfigure=true;; "--i_do_not_follow_recommendations" ) skipSpaceCheck=false;; "--unattended" ) runUnattended=true;; + "--avoid_static_ip" ) skipStaticIpSetup=true;; esac done @@ -1324,7 +1326,7 @@ main() { chooseInterface # Only try to set static on Raspbian, otherwise let user do it - if [[ $PLAT != "Raspbian" ]]; then + if [[ $PLAT != "Raspbian" ]] || [[ "${skipStaticIpSetup}" == true ]]; then avoidStaticIPv4Ubuntu else getStaticIPv4Settings