Skip to content

Commit

Permalink
Merge pull request #51 from isyekong/main
Browse files Browse the repository at this point in the history
补充架构检测
  • Loading branch information
sjlleo authored Jan 8, 2023
2 parents 6bf2437 + b435a36 commit 491f774
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions nt_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,29 @@ checkSystemArch() {
arch=$(uname -m)
if [[ $arch == "x86_64" ]]; then
archParam="amd64"
fi

if [[ $arch == "aarch64" ]]; then
elif [[ $arch == "i386" ]]; then
archParam="386"
elif [[ $arch == "aarch64" ]]; then
archParam="arm64"
elif [[ $arch == "armv7l" ]] || [[ $arch == "armv7ml" ]]; then
archParam="armv7"
elif [[ $arch == "mips" ]]; then
archParam="mips"
fi
}

checkSystemDistribution() {
case "$OSTYPE" in
linux*)
osDistribution="linux"

if [ ! -d "/usr/local" ];
then
downPath="/usr/bin/nexttrace"
else
downPath="/usr/local/bin/nexttrace"
fi

;;
*)
echo "unknown: $OSTYPE"
Expand Down Expand Up @@ -109,7 +120,7 @@ changeMode() {
runBinrayFileHelp() {
if [ -e ${downPath} ]; then
${downPath} -V
echo -e "${Tips} 一切准备就绪!使用命令 nexttrace 1.1.1.1 开始您的第一次路由测试吧~ 更多进阶命令玩法可以用 nexttrace -h 查看哦\n 关于软件卸载,因为nexttrace是绿色版单文件,卸载只需输入命令 rm /usr/local/bin/nexttrace 即可"
echo -e "${Tips} 一切准备就绪!使用命令 nexttrace 1.1.1.1 开始您的第一次路由测试吧~ 更多进阶命令玩法可以用 nexttrace -h 查看哦\n 关于软件卸载,因为nexttrace是绿色版单文件,卸载只需输入命令 rm ${downPath} 即可"
fi
}

Expand Down

0 comments on commit 491f774

Please sign in to comment.