add arch check (#981)

This commit is contained in:
tteckster 2023-01-25 08:14:42 -05:00 committed by GitHub
parent 263c59944a
commit e392cf9811
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
138 changed files with 1312 additions and 0 deletions

View file

@ -69,6 +69,15 @@ function PVE_CHECK() {
exit
fi
}
function ARCH_CHECK() {
ARCH=$(dpkg --print-architecture)
if [[ "$ARCH" != "amd64" ]]; then
echo -e "\n ❌ This script will not work with PiMox! \n"
echo -e "Exiting..."
sleep 2
exit
fi
}
function default_settings() {
echo -e "${DGN}Using Container Type: ${BGN}Unprivileged${CL} ${RD}NO DEVICE PASSTHROUGH${CL}"
CT_TYPE="1"