From 7383b5e6c9d1dd6736dc3e049e520fcc1cb6799f Mon Sep 17 00:00:00 2001 From: Fred Liang Date: Tue, 26 May 2020 21:01:08 +0800 Subject: [PATCH] feat: add AX3600 support --- install.sh | 1 + install_github.sh | 1 + update.sh | 1 + 3 files changed, 3 insertions(+) diff --git a/install.sh b/install.sh index d77c84f..8e1a977 100644 --- a/install.sh +++ b/install.sh @@ -21,6 +21,7 @@ mburl="https://monlor.coding.net/p/mbfiles/d/mbfiles/git/lfs/master" mbtmp="/tmp/mbtmp" [ ! -d "${mbtmp}" ] && mkdir -p ${mbtmp} model=$(uname -ms | tr ' ' '_' | tr '[A-Z]' '[a-z]') +[ -n "$(echo $model | grep -E "linux.*aarch.*")" ] && model="linux_arm" [ -n "$(echo $model | grep -E "linux.*arm.*")" ] && model="linux_arm" [ -n "$(echo $model | grep -E "linux.*mips.*")" ] && model="linux_mips" [ -n "$(echo $model | grep -E "linux.*x86_64.*")" ] && model="linux_x86_64" diff --git a/install_github.sh b/install_github.sh index 71c5772..9deb46c 100644 --- a/install_github.sh +++ b/install_github.sh @@ -21,6 +21,7 @@ mburl="https://raw.githubusercontent.com/monlor/mbfiles/master" mbtmp="/tmp/mbtmp" [ ! -d "${mbtmp}" ] && mkdir -p ${mbtmp} model=$(uname -ms | tr ' ' '_' | tr '[A-Z]' '[a-z]') +[ -n "$(echo $model | grep -E "linux.*aarch.*")" ] && model="linux_arm" [ -n "$(echo $model | grep -E "linux.*arm.*")" ] && model="linux_arm" [ -n "$(echo $model | grep -E "linux.*mips.*")" ] && model="linux_mips" [ -n "$(echo $model | grep -E "linux.*x86_64.*")" ] && model="linux_x86_64" diff --git a/update.sh b/update.sh index d2adbc7..8884989 100644 --- a/update.sh +++ b/update.sh @@ -37,6 +37,7 @@ rm -rf ${mbroot}/bin/base64* if [ -z "$(mbdb get mixbox.main.model)" ]; then model=$(uname -ms | tr ' ' '_' | tr '[A-Z]' '[a-z]') + [ -n "$(echo $model | grep -E "linux.*aarch.*")" ] && model="linux_arm" [ -n "$(echo $model | grep -E "linux.*arm.*")" ] && model="linux_arm" [ -n "$(echo $model | grep -E "linux.*mips.*")" ] && model="linux_mips" mbdb set mixbox.main.model="$model"