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