From bd2089f062235c4056924b2d10591a0e6dcdc16f Mon Sep 17 00:00:00 2001 From: Joel Samson Date: Wed, 9 Apr 2025 02:20:37 -0400 Subject: [PATCH 01/16] Minor Fixes Minor Fixes --- MerlinAU.sh | 43 ++++++++++++++++++++++--------------------- 1 file changed, 22 insertions(+), 21 deletions(-) diff --git a/MerlinAU.sh b/MerlinAU.sh index c678bfd0..eb802c60 100644 --- a/MerlinAU.sh +++ b/MerlinAU.sh @@ -4,12 +4,12 @@ # # Original Creation Date: 2023-Oct-01 by @ExtremeFiretop. # Official Co-Author: @Martinski W. - Date: 2023-Nov-01 -# Last Modified: 2025-Apr-08 +# Last Modified: 2025-Apr-09 ################################################################### set -u ## Set version for each Production Release ## -readonly SCRIPT_VERSION=1.4.1 +readonly SCRIPT_VERSION=1.4.2 readonly SCRIPT_NAME="MerlinAU" ## Set to "master" for Production Releases ## SCRIPT_BRANCH="dev" @@ -47,13 +47,6 @@ ScriptBuildNum=0 ScriptVersionNum="" scriptUpdateNotify=0 -##------------------------------------------## -## Modified by ExtremeFiretop [2024-Oct-02] ## -##------------------------------------------## -# For minimum supported firmware version check # -MinFirmwareVerCheckFailed=false -MinSupportedFirmwareVers="3004.386.12.6" - # For router model check # routerModelCheckFailed=false offlineUpdateTrigger=false @@ -196,12 +189,15 @@ readonly fwInstalledExtendNum="$(nvram get extendno)" readonly fwInstalledInnerVers="$(nvram get innerver)" readonly fwInstalledBranchVer="${fwInstalledBaseVers}.$(echo "$fwInstalledBuildVers" | awk -F'.' '{print $1}')" -##-------------------------------------## -## Added by Martinski W. [2024-Oct-03] ## -##-------------------------------------## -readonly MinSupportedFW_3004_386_Ver="3004.386.12.6" -readonly MinSupportedFW_3004_388_Ver="3004.388.6.2" -readonly MinSupportedFW_3006_102_Ver="3004.388.8.0" + +##------------------------------------------## +## Modified by ExtremeFiretop [2024-Oct-02] ## +##------------------------------------------## +# For minimum supported firmware version check # +MinFirmwareVerCheckFailed=false +readonly MinSupportedFW_3004_386_Ver="3004.386.13.2" +readonly MinSupportedFW_3004_388_Ver="3004.388.8.0" +readonly MinSupportedFW_3006_102_Ver="3004.388.8.2" case "$fwInstalledBranchVer" in "3004.386") MinSupportedFirmwareVers="$MinSupportedFW_3004_386_Ver" ;; @@ -1137,9 +1133,9 @@ _UpdateLoginPswdCheckHelper_() _WriteVarDefToPswdCheckJSFile_ "loginPswdCheckMsgStr" "$checkMsge" } -##----------------------------------------## -## Modified by Martinski W. [2025-Apr-07] ## -##----------------------------------------## +##------------------------------------------## +## Modified by ExtremeFiretop [2025-Apr-09] ## +##------------------------------------------## _InitCustomDefaultsConfig_() { [ ! -d "$SETTINGS_DIR" ] && mkdir -m 755 -p "$SETTINGS_DIR" @@ -1158,6 +1154,7 @@ _InitCustomDefaultsConfig_() echo "FW_New_Update_LOG_Preferred_Path=\"${FW_Update_LOG_BASE_DefaultDIR}\"" echo "FW_New_Update_EMail_CC_Name=TBD" echo "FW_New_Update_EMail_CC_Address=TBD" + echo "FW_New_Update_Changelog_Approval=TBD" echo "credentials_base64 TBD" echo "CheckChangeLog ENABLED" echo "FW_Update_Check TBD" @@ -2852,7 +2849,7 @@ _SCRIPT_UPDATE_() if [ "$SCRIPT_VERSION" = "$DLRepoVersion" ] && { [ -z "$DLRepoBuildNum" ] || [ "$DLRepoBuildNum" = "$ScriptBuildNum" ]; } then - echo -e "${CYANct}You are on the latest version! Would you like to download anyways?${NOct}" + echo -e "${CYANct}You are on the latest version! Would you like to download anyway?${NOct}" echo -e "${CYANct}This will overwrite your currently installed version.${NOct}" if _WaitForYESorNO_ then @@ -4415,6 +4412,8 @@ _GetLoginCredentials_() if _WaitForYESorNO_ "\nWould you like to test the current login credentials?" then _TestLoginCredentials_ "$loginCredsENC" || continue + else + _UpdateLoginPswdCheckHelper_ UNKNOWN fi # Stop the loop if the test passes or if the user chooses not to test # @@ -7195,7 +7194,7 @@ _high_risk_phrases_interactive_() if [ "$inMenuMode" = true ] then printf "\n ${REDct}*WARNING*: Found high-risk phrases in the changelog file.${NOct}" - printf "\n ${REDct}Would you like to continue with the firmware update anyways?${NOct}" + printf "\n ${REDct}Would you like to continue with the firmware update anyway?${NOct}" if ! _WaitForYESorNO_ then Say "Exiting for changelog review." @@ -10261,8 +10260,10 @@ _ShowMainMenuOptions_() fi printf "\n${SEPstr}" + loginStatusMsg=$(grep "^var loginPswdCheckMsgStr =" "$PSWD_CHECK_JS" | awk -F"'" '{print $2}') printf "\n ${GRNct}1${NOct}. Run F/W Update Check Now\n" - printf "\n ${GRNct}2${NOct}. Set Router Login Password\n" + printf "\n ${GRNct}2${NOct}. Set Router Login Password" + printf "\n${padStr}[Currently ${InvBMGNct}$loginStatusMsg${NOct}]\n" # Enable/Disable the ASUS Router's built-in "F/W Update Check" # FW_UpdateCheckState="$(nvram get firmware_check_enable)" From b0177139f8b1823e1fab53a59902dc0c4b039802 Mon Sep 17 00:00:00 2001 From: Joel Samson Date: Wed, 9 Apr 2025 02:22:59 -0400 Subject: [PATCH 02/16] Update MerlinAU.sh --- MerlinAU.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/MerlinAU.sh b/MerlinAU.sh index eb802c60..93c76705 100644 --- a/MerlinAU.sh +++ b/MerlinAU.sh @@ -191,7 +191,7 @@ readonly fwInstalledBranchVer="${fwInstalledBaseVers}.$(echo "$fwInstalledBuildV ##------------------------------------------## -## Modified by ExtremeFiretop [2024-Oct-02] ## +## Modified by ExtremeFiretop [2025-Apr-09] ## ##------------------------------------------## # For minimum supported firmware version check # MinFirmwareVerCheckFailed=false @@ -4347,9 +4347,9 @@ with the \"${GRNct}Web UI${NOct}\" access type on the \"Access restriction list\ return 1 } -##----------------------------------------## -## Modified by Martinski W. [2025-Mar-07] ## -##----------------------------------------## +##------------------------------------------## +## Modified by ExtremeFiretop [2025-Apr-09] ## +##------------------------------------------## _GetLoginCredentials_() { local retry="yes" userName savedMsgStr @@ -4412,8 +4412,8 @@ _GetLoginCredentials_() if _WaitForYESorNO_ "\nWould you like to test the current login credentials?" then _TestLoginCredentials_ "$loginCredsENC" || continue - else - _UpdateLoginPswdCheckHelper_ UNKNOWN + else + _UpdateLoginPswdCheckHelper_ UNKNOWN fi # Stop the loop if the test passes or if the user chooses not to test # @@ -10176,9 +10176,9 @@ _InvalidMenuSelection_() _WaitForEnterKey_ } -##----------------------------------------## -## Modified by Martinski W. [2025-Feb-15] ## -##----------------------------------------## +##------------------------------------------## +## Modified by ExtremeFiretop [2025-Apr-09] ## +##------------------------------------------## _ShowMainMenuOptions_() { local FW_NewUpdateVerStr FW_NewUpdateVersion From 42bb8b1339e807be074e15f3320a1076290c843f Mon Sep 17 00:00:00 2001 From: Joel Samson Date: Wed, 9 Apr 2025 02:23:19 -0400 Subject: [PATCH 03/16] Update MerlinAU.asp --- MerlinAU.asp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MerlinAU.asp b/MerlinAU.asp index 3e21edf1..d5981052 100644 --- a/MerlinAU.asp +++ b/MerlinAU.asp @@ -2684,7 +2684,7 @@ function initializeCollapsibleSections()
@@ -2881,7 +2881,7 @@ function initializeCollapsibleSections() - @@ -2899,7 +2899,7 @@ function initializeCollapsibleSections() - From 412f7357444ebd297668fe18db717045b15f9281 Mon Sep 17 00:00:00 2001 From: Joel Samson Date: Wed, 9 Apr 2025 02:34:45 -0400 Subject: [PATCH 04/16] Update version.txt --- version.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/version.txt b/version.txt index 9e0593f5..d6bd7f64 100644 --- a/version.txt +++ b/version.txt @@ -1,2 +1,2 @@ -1.4.1 -25040806 +1.4.2 +25040902 From 66a45daa0e453124a63c37ef56e471db23f744b2 Mon Sep 17 00:00:00 2001 From: Joel Samson Date: Wed, 9 Apr 2025 02:35:09 -0400 Subject: [PATCH 05/16] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 604c89fb..9d244eca 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # MerlinAU - AsusWRT-Merlin Firmware Auto Updater -## v1.4.1 -## 2025-Apr-08 +## v1.4.2 +## 2025-Apr-09 ## WebUI: ![image](https://github.com/user-attachments/assets/92701007-a902-4724-9bae-b255856a686a) From 37a57bc63f29e5b38f5ae27b39db14ff25eb69bc Mon Sep 17 00:00:00 2001 From: Joel Samson Date: Wed, 9 Apr 2025 02:39:44 -0400 Subject: [PATCH 06/16] Update MerlinAU.asp --- MerlinAU.asp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MerlinAU.asp b/MerlinAU.asp index d5981052..06129fcf 100644 --- a/MerlinAU.asp +++ b/MerlinAU.asp @@ -2784,7 +2784,7 @@ function initializeCollapsibleSections()
Hour: Date: Wed, 9 Apr 2025 22:42:35 -0400 Subject: [PATCH 07/16] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 9d244eca..ff8ce15c 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,7 @@ - GT-AX11000_PRO (Tested) - GT-AX11000 (Tested) - GT-AC2900 **(Untested)** + - RT-BE92U **(Untested)** - RT-BE96U **(Untested)** - RT-BE88U **(Untested)** - RT-BE86U **(Untested)** From b515766af11d59e8964b7b14b353c0ae90102974 Mon Sep 17 00:00:00 2001 From: Martinski <119833648+Martinski4GitHub@users.noreply.github.com> Date: Wed, 9 Apr 2025 22:11:26 -0700 Subject: [PATCH 08/16] Code Improvements Some additional code improvements. --- MerlinAU.asp | 2 +- MerlinAU.sh | 106 +++++++++++++++++++++++++++++++++------------------ version.txt | 2 +- 3 files changed, 70 insertions(+), 40 deletions(-) diff --git a/MerlinAU.asp b/MerlinAU.asp index 06129fcf..8c2b38d2 100644 --- a/MerlinAU.asp +++ b/MerlinAU.asp @@ -29,7 +29,7 @@