Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorquydang <81231812+quydang04@users.noreply.github.com>2024-01-20 12:32:35 +0300
committerGitHub <noreply@github.com>2024-01-20 12:32:35 +0300
commit74ba6d7825741fe7965c91e5ccd8ae6d0436fe59 (patch)
tree01d1cb09bb870b2522b3d1aee4d16f805a9f1c17 /install.sh
parent7fd4015f174e4c529612dfeee534fb1f2842ba7d (diff)
Add support for ARMv5 and x86 (#1642)
Diffstat (limited to 'install.sh')
-rw-r--r--install.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/install.sh b/install.sh
index 8d4a0c0c..8fd42ab8 100644
--- a/install.sh
+++ b/install.sh
@@ -26,12 +26,15 @@ echo "The OS release is: $release"
arch3xui() {
case "$(uname -m)" in
x86_64 | x64 | amd64) echo 'amd64' ;;
+ i*86 | x86) echo '386' ;;
armv8* | armv8 | arm64 | aarch64) echo 'arm64' ;;
armv7* | armv7 | arm) echo 'armv7' ;;
- armv6* | armv6 | arm) echo 'armv6' ;;
+ armv6* | armv6) echo 'armv6' ;;
+ armv5* | armv5) echo 'armv5' ;;
*) echo -e "${green}Unsupported CPU architecture! ${plain}" && rm -f install.sh && exit 1 ;;
esac
}
+
echo "arch: $(arch3xui)"
os_version=""
@@ -163,7 +166,8 @@ install_x-ui() {
chmod +x x-ui
# Check the system's architecture and rename the file accordingly
- if [[ $(arch3xui) == "armv6" || $(arch3xui) == "armv7" ]]; then
+ if [[ $(arch3xui) == "armv5" || $(arch3xui) == "armv6" || $(arch3xui) == "armv7" ]]; then
+
mv bin/xray-linux-$(arch3xui) bin/xray-linux-arm
chmod +x bin/xray-linux-arm
fi