Skip to content

Commit 66a5d07

Browse files
author
Aaron Viehl
committed
Fix for GL-SFT1200
1 parent bd0c55f commit 66a5d07

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

update-adguardhome.sh

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
# Description: This script updates AdGuardHome to the latest version.
88
# Thread: https://forum.gl-inet.com/t/how-to-update-adguard-home-testing/39398
99
# Author: Admon
10-
# Date: 2024-03-13
11-
SCRIPT_VERSION="2024.11.23.01"
10+
SCRIPT_VERSION="2025.02.17.01"
1211
SCRIPT_NAME="update-adguardhome.sh"
1312
UPDATE_URL="https://raw.githubusercontent.com/Admonstrator/glinet-adguard-updater/main/update-adguardhome.sh"
1413
AGH_TINY_URL="https://github.com/Admonstrator/glinet-adguard-updater/releases/latest/download"
@@ -134,13 +133,16 @@ preflight_check() {
134133
elif [ "$ARCH" = "mips" ]; then
135134
# Check for GL.iNet GL-MT1300 as it uses mipsle
136135
MODEL=$(grep 'machine' /proc/cpuinfo | awk -F ': ' '{print $2}')
137-
if [ "$MODEL" = "GL.iNet GL-MT1300" ]; then
136+
case "$MODEL" in
137+
"GL.iNet GL-MT1300" | "GL-MT300N-V2" | "GL-SFT1200")
138138
log "SUCCESS" "Architecture: mipsle"
139139
AGH_ARCH="AdGuardHome-linux_mipsle_softfloat"
140-
else
140+
;;
141+
*)
141142
log "SUCCESS" "Architecture: mips"
142143
AGH_ARCH="AdGuardHome-linux_mips_softfloat"
143-
fi
144+
;;
145+
esac
144146
else
145147
log "ERROR" "This script only works on arm64 and armv7."
146148
PREFLIGHT=1

0 commit comments

Comments
 (0)