Skip to content

Commit 7e73334

Browse files
committed
add armv7 support
for compatibility
1 parent a5585c4 commit 7e73334

File tree

3 files changed

+19
-6
lines changed

3 files changed

+19
-6
lines changed
File renamed without changes.

bin/AdGuardHome_armv7

27.6 MB
Binary file not shown.

customize.sh

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,23 @@
1-
if [ "$ARCH" != "arm64" ]; then
2-
abort "- only support arm64"
3-
fi
4-
5-
ui_print "- Installing AdGuardHome"
6-
71
ADG_DIR="$MODPATH/bin"
2+
case $ARCH in
3+
arm64)
4+
mv "$ADG_DIR/AdGuardHome_arm64" "$ADG_DIR/AdGuardHome"
5+
rm -f "$ADG_DIR/AdGuardHome_armv7"
6+
;;
7+
arm)
8+
mv "$ADG_DIR/AdGuardHome_armv7" "$ADG_DIR/AdGuardHome"
9+
rm -f "$ADG_DIR/AdGuardHome_arm64"
10+
;;
11+
x86)
12+
# mv "$ADG_DIR/AdGuardHome_x86" "$ADG_DIR/AdGuardHome"
13+
abort "x86 is not supported"
14+
;;
15+
x64)
16+
# mv "$ADG_DIR/AdGuardHome_x64" "$ADG_DIR/AdGuardHome"
17+
abort "x64 is not supported"
18+
;;
19+
esac
20+
821
chmod 0775 "$ADG_DIR/AdGuardHome" "$MODPATH/apply_iptables.sh" "$MODPATH/flush_iptables.sh"
922
chown root:net_raw "$ADG_DIR/AdGuardHome"
1023

0 commit comments

Comments
 (0)