File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 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"
1211SCRIPT_NAME=" update-adguardhome.sh"
1312UPDATE_URL=" https://raw.githubusercontent.com/Admonstrator/glinet-adguard-updater/main/update-adguardhome.sh"
1413AGH_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
You can’t perform that action at this time.
0 commit comments