Update setup.bash to work on Marvell arm64 OS
This commit is contained in:
parent
a99583fb1d
commit
8a3f4ba77f
|
@ -95,7 +95,7 @@ elif [ "$(uname | grep -i 'Linux')" ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "$(arch | grep 64)" ]; then
|
if [ -n "$(uname -a | grep 64)" ]; then
|
||||||
ARCH="64"
|
ARCH="64"
|
||||||
else
|
else
|
||||||
ARCH="32"
|
ARCH="32"
|
||||||
|
@ -117,6 +117,8 @@ elif [ "$(uname | grep -i 'Linux')" ]; then
|
||||||
OS='raspbian'
|
OS='raspbian'
|
||||||
elif [ "$(cat /etc/issue | grep -i 'Fedora')" ]; then
|
elif [ "$(cat /etc/issue | grep -i 'Fedora')" ]; then
|
||||||
OS='fedora'
|
OS='fedora'
|
||||||
|
elif [ "$(cat /etc/issue | grep -i 'Marvell')" ]; then
|
||||||
|
OS='marvell'
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "unsupported unknown os (non-mac, non-linux)"
|
echo "unsupported unknown os (non-mac, non-linux)"
|
||||||
|
@ -134,6 +136,9 @@ case "${OS}" in
|
||||||
raspbian)
|
raspbian)
|
||||||
SETUP_FILE="ubuntu"
|
SETUP_FILE="ubuntu"
|
||||||
;;
|
;;
|
||||||
|
marvell)
|
||||||
|
SETUP_FILE="ubuntu"
|
||||||
|
;;
|
||||||
yosemite)
|
yosemite)
|
||||||
# mavericks
|
# mavericks
|
||||||
SETUP_FILE="mavericks"
|
SETUP_FILE="mavericks"
|
||||||
|
|
Loading…
Reference in New Issue