From 0fb765e714959f4387298e8173f62f026e438b78 Mon Sep 17 00:00:00 2001 From: vacabun Date: Tue, 28 Mar 2023 12:57:32 +0800 Subject: [PATCH] fix arm64 and aarch64 name adaptation. --- restart.sh | 2 +- start.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/restart.sh b/restart.sh index 111afe3..3efd4ab 100755 --- a/restart.sh +++ b/restart.sh @@ -75,7 +75,7 @@ if [[ $CpuArch =~ "x86_64" ]]; then nohup $Server_Dir/bin/clash-linux-amd64 -d $Conf_Dir &> $Log_Dir/clash.log & ReturnStatus=$? if_success $Text5 $Text6 $ReturnStatus -elif [[ $CpuArch =~ "aarch64" ]]; then +elif [[ $CpuArch =~ "aarch64" || $CpuArch =~ "arm64" ]]; then nohup $Server_Dir/bin/clash-linux-arm64 -d $Conf_Dir &> $Log_Dir/clash.log & ReturnStatus=$? if_success $Text5 $Text6 $ReturnStatus diff --git a/start.sh b/start.sh index c4ea312..ed1fca4 100755 --- a/start.sh +++ b/start.sh @@ -123,7 +123,7 @@ if [[ $CpuArch =~ "x86_64" ]]; then nohup $Server_Dir/bin/clash-linux-amd64 -d $Conf_Dir &> $Log_Dir/clash.log & ReturnStatus=$? if_success $Text5 $Text6 $ReturnStatus -elif [[ $CpuArch =~ "aarch64" ]]; then +elif [[ $CpuArch =~ "aarch64" || $CpuArch =~ "arm64" ]]; then nohup $Server_Dir/bin/clash-linux-arm64 -d $Conf_Dir &> $Log_Dir/clash.log & ReturnStatus=$? if_success $Text5 $Text6 $ReturnStatus