mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-19 13:47:54 +00:00
25 lines
249 B
Bash
25 lines
249 B
Bash
|
#!/bin/sh
|
||
|
# detect-arch.sh
|
||
|
|
||
|
apk_arch=$(apk --print-arch)
|
||
|
case $apk_arch in
|
||
|
x86_64)
|
||
|
printf "amd64"
|
||
|
;;
|
||
|
aarch64)
|
||
|
printf "aarch64"
|
||
|
;;
|
||
|
armv7)
|
||
|
printf "armv7hf"
|
||
|
;;
|
||
|
armhf)
|
||
|
printf "rpi"
|
||
|
;;
|
||
|
x86)
|
||
|
printf "i386"
|
||
|
;;
|
||
|
*)
|
||
|
printf "%s" "$apk_arch"
|
||
|
;;
|
||
|
esac
|