Update setup.bash to work on Marvell arm64 OS

This commit is contained in:
richdex14 2017-09-02 11:45:28 -06:00
parent a99583fb1d
commit 8a3f4ba77f
1 changed files with 6 additions and 1 deletions

View File

@ -95,7 +95,7 @@ elif [ "$(uname | grep -i 'Linux')" ]; then
exit 1
fi
if [ -n "$(arch | grep 64)" ]; then
if [ -n "$(uname -a | grep 64)" ]; then
ARCH="64"
else
ARCH="32"
@ -117,6 +117,8 @@ elif [ "$(uname | grep -i 'Linux')" ]; then
OS='raspbian'
elif [ "$(cat /etc/issue | grep -i 'Fedora')" ]; then
OS='fedora'
elif [ "$(cat /etc/issue | grep -i 'Marvell')" ]; then
OS='marvell'
fi
else
echo "unsupported unknown os (non-mac, non-linux)"
@ -134,6 +136,9 @@ case "${OS}" in
raspbian)
SETUP_FILE="ubuntu"
;;
marvell)
SETUP_FILE="ubuntu"
;;
yosemite)
# mavericks
SETUP_FILE="mavericks"