From ad363b717b967b1edb3453007529c068a23653aa Mon Sep 17 00:00:00 2001 From: Orazio Date: Fri, 29 May 2020 17:49:25 +0200 Subject: [PATCH] Moved package check to relevant preconfigurePackages() function --- auto_install/install.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/auto_install/install.sh b/auto_install/install.sh index 1b4f62c..93b266f 100755 --- a/auto_install/install.sh +++ b/auto_install/install.sh @@ -302,10 +302,6 @@ distroCheck(){ ;; esac - if [ "$PLAT" = "Raspbian" ]; then - BASE_DEPS+=(dhcpcd5) - fi - echo "PLAT=${PLAT}" > ${tempsetupVarsFile} echo "OSCN=${OSCN}" >> ${tempsetupVarsFile} } @@ -467,6 +463,11 @@ preconfigurePackages(){ fi fi + # We set static IP only on Raspbian + if [ "$PLAT" = "Raspbian" ]; then + BASE_DEPS+=(dhcpcd5) + fi + # if ufw is enabled, configure that. # running as root because sometimes the executable is not in the user's $PATH if $SUDO bash -c 'command -v ufw' > /dev/null; then