]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
backupiso: Add support for aarch64
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 8 Nov 2018 16:02:17 +0000 (16:02 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 8 Nov 2018 16:02:17 +0000 (16:02 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/scripts/backupiso

index 5d85d6e79c1a3d8d3881897efb09cccc15370f2f..d15833d5d7ac42cd787b2658f34309e1ef607f38 100644 (file)
@@ -6,17 +6,14 @@ COREVER=$(cat /opt/pakfire/db/core/mine)
 
 arch=$(uname -m)
 
-case $arch in
+case "${arch}" in
+       aarch64|x86_64)
+               ;;
        i?86)
                arch="i586"
-               echo "Your arch is $arch"
-               ;;
-       x86_64)
-               arch="x86_64"
-               echo "Your arch is $arch"
                ;;
        *)
-               echo "Arch is not supported"
+               echo "Arch is not supported" >&2
                exit 1
                ;;
 esac