mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-19 05:37:53 +00:00
a1e432f4fa
This will help running `test:env` and `test:compose` in environments other than `amd64`.
34 lines
302 B
Bash
Executable File
34 lines
302 B
Bash
Executable File
#!/bin/sh
|
|
# detect-arch.sh
|
|
|
|
case $(uname -m) in
|
|
x86_64)
|
|
echo "amd64"
|
|
;;
|
|
aarch64)
|
|
:
|
|
echo "aarch64"
|
|
;;
|
|
arm64)
|
|
echo "aarch64"
|
|
;;
|
|
armv7l)
|
|
echo "armv7hf"
|
|
;;
|
|
armv6l)
|
|
echo "rpi"
|
|
;;
|
|
i686)
|
|
:
|
|
echo "i386"
|
|
;;
|
|
i386)
|
|
:
|
|
echo "i386"
|
|
;;
|
|
*)
|
|
echo >&2 "Unknown architecture $(uname -m)"
|
|
exit 1
|
|
;;
|
|
esac
|