Skip to content

Commit

Permalink
Update installer
Browse files Browse the repository at this point in the history
  • Loading branch information
jumpsmm7 committed Feb 1, 2022
1 parent 239fae8 commit 9bed973
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions installer
Expand Up @@ -1000,6 +1000,7 @@ write_command_script () {
RURL="https://raw.githubusercontent.com/jumpsmm7/Asuswrt-Merlin-AdGuardHome-Installer/${BRANCH}/installer"
ROUTER_OS="$(/bin/uname)"
ROUTER_ARCH="$(/bin/uname -m)"
NAT_ENV="$(nvram get wan_ipaddr | grep -E '^(192\.168|10\.|172\.1[6789]\.|172\.2[0-9]\.|172\.3[01]\.)')"

clear

Expand All @@ -1008,6 +1009,13 @@ clear

sed -n '2,22p' "$0"

if [ -n "$NAT_ENV" ]; then
PTXT "$WARNING This router is in a Double-Nat Environment. While for some users of AdGuardHome this may work fine," \
"$WARNING Consider this a warning that there is no guarentee that it will." \
"$WARNING The script developer cannot help in this scenario." \
"$WARNING However you are still welcome to use the script."
fi

case "$ROUTER_MODEL" in
#RT-AX56U|RT-AX58U|RT-AX3000)
# PTXT "$ERROR This is an unsupported router, sorry."
Expand Down

0 comments on commit 9bed973

Please sign in to comment.