From 9bed9735ea149cfa309d2ffa29b8d2f54672b3cf Mon Sep 17 00:00:00 2001 From: jumpsmm7 <49514613+jumpsmm7@users.noreply.github.com> Date: Tue, 1 Feb 2022 00:30:04 -0500 Subject: [PATCH] Update installer --- installer | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/installer b/installer index e028567..62b9ee6 100644 --- a/installer +++ b/installer @@ -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 @@ -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."