File tree Expand file tree Collapse file tree 3 files changed +19
-6
lines changed
Expand file tree Collapse file tree 3 files changed +19
-6
lines changed File renamed without changes.
Original file line number Diff line number Diff line change 1- if [ " $ARCH " != " arm64" ]; then
2- abort " - only support arm64"
3- fi
4-
5- ui_print " - Installing AdGuardHome"
6-
71ADG_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+
821chmod 0775 " $ADG_DIR /AdGuardHome" " $MODPATH /apply_iptables.sh" " $MODPATH /flush_iptables.sh"
922chown root:net_raw " $ADG_DIR /AdGuardHome"
1023
You can’t perform that action at this time.
0 commit comments