Moved package check to relevant preconfigurePackages() function

This commit is contained in:
Orazio 2020-05-29 17:49:25 +02:00
parent 427c484cac
commit ad363b717b

View file

@ -302,10 +302,6 @@ distroCheck(){
;; ;;
esac esac
if [ "$PLAT" = "Raspbian" ]; then
BASE_DEPS+=(dhcpcd5)
fi
echo "PLAT=${PLAT}" > ${tempsetupVarsFile} echo "PLAT=${PLAT}" > ${tempsetupVarsFile}
echo "OSCN=${OSCN}" >> ${tempsetupVarsFile} echo "OSCN=${OSCN}" >> ${tempsetupVarsFile}
} }
@ -467,6 +463,11 @@ preconfigurePackages(){
fi fi
fi fi
# We set static IP only on Raspbian
if [ "$PLAT" = "Raspbian" ]; then
BASE_DEPS+=(dhcpcd5)
fi
# if ufw is enabled, configure that. # if ufw is enabled, configure that.
# running as root because sometimes the executable is not in the user's $PATH # running as root because sometimes the executable is not in the user's $PATH
if $SUDO bash -c 'command -v ufw' > /dev/null; then if $SUDO bash -c 'command -v ufw' > /dev/null; then