Skip to content

Commit

Permalink
Correct architectures for arm32
Browse files Browse the repository at this point in the history
  • Loading branch information
Lord-Grey committed Nov 28, 2023
1 parent 95d9797 commit e639fe9
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,13 @@ function get_architecture() {
if [ "${CURRENT_ARCHITECTURE}" == "aarch64" ]; then
CURRENT_ARCHITECTURE="arm64"
USER_ARCHITECTURE=${CURRENT_ARCHITECTURE}
IS_V7L=$(grep -m1 -c v7l /proc/$$/maps)
if [ $IS_V7L -ne 0 ]; then
USER_ARCHITECTURE="armv7"
IS_ARMHF=$(grep -m1 -c armhf /proc/$$/maps)
if [ $IS_ARMHF -ne 0 ]; then
USER_ARCHITECTURE="armhf"
else
IS_V6L=$(grep -m1 -c v6l /proc/$$/maps)
if [ $IS_V6L -ne 0 ]; then
USER_ARCHITECTURE="armv6"
IS_ARMEL=$(grep -m1 -c armel /proc/$$/maps)
if [ $IS_ARMEL -ne 0 ]; then
USER_ARCHITECTURE="armel"
fi
fi
if [ "$ARCHITECTURE" != "$USER_ARCHITECTURE" ]; then
Expand All @@ -104,7 +104,7 @@ check_architecture() {
valid_architectures=''
case "$distro" in
debian|ubuntu|raspbian)
valid_architectures='armv6l, armv7l, arm64, amd64';
valid_architectures='armel, armhf, arm64, amd64';
;;
fedora)
valid_architectures='amd64';
Expand Down

0 comments on commit e639fe9

Please sign in to comment.