44#
55# Original Creation Date: 2023-Oct-01 by @ExtremeFiretop.
66# Official Co-Author: @Martinski W. - Date: 2023-Nov-01
7- # Last Modified: 2025-Apr-08
7+ # Last Modified: 2025-Apr-09
88# ##################################################################
99set -u
1010
1111# # Set version for each Production Release ##
12- readonly SCRIPT_VERSION=1.4.1
12+ readonly SCRIPT_VERSION=1.4.2
1313readonly SCRIPT_NAME=" MerlinAU"
1414# # Set to "master" for Production Releases ##
1515SCRIPT_BRANCH=" dev"
@@ -47,13 +47,6 @@ ScriptBuildNum=0
4747ScriptVersionNum=" "
4848scriptUpdateNotify=0
4949
50- # #------------------------------------------##
51- # # Modified by ExtremeFiretop [2024-Oct-02] ##
52- # #------------------------------------------##
53- # For minimum supported firmware version check #
54- MinFirmwareVerCheckFailed=false
55- MinSupportedFirmwareVers=" 3004.386.12.6"
56-
5750# For router model check #
5851routerModelCheckFailed=false
5952offlineUpdateTrigger=false
@@ -196,12 +189,15 @@ readonly fwInstalledExtendNum="$(nvram get extendno)"
196189readonly fwInstalledInnerVers=" $( nvram get innerver) "
197190readonly fwInstalledBranchVer=" ${fwInstalledBaseVers} .$( echo " $fwInstalledBuildVers " | awk -F' .' ' {print $1}' ) "
198191
199- # #-------------------------------------##
200- # # Added by Martinski W. [2024-Oct-03] ##
201- # #-------------------------------------##
202- readonly MinSupportedFW_3004_386_Ver=" 3004.386.12.6"
203- readonly MinSupportedFW_3004_388_Ver=" 3004.388.6.2"
204- readonly MinSupportedFW_3006_102_Ver=" 3004.388.8.0"
192+
193+ # #------------------------------------------##
194+ # # Modified by ExtremeFiretop [2025-Apr-09] ##
195+ # #------------------------------------------##
196+ # For minimum supported firmware version check #
197+ MinFirmwareVerCheckFailed=false
198+ readonly MinSupportedFW_3004_386_Ver=" 3004.386.13.2"
199+ readonly MinSupportedFW_3004_388_Ver=" 3004.388.8.0"
200+ readonly MinSupportedFW_3006_102_Ver=" 3004.388.8.2"
205201
206202case " $fwInstalledBranchVer " in
207203 " 3004.386" ) MinSupportedFirmwareVers=" $MinSupportedFW_3004_386_Ver " ;;
@@ -1137,9 +1133,9 @@ _UpdateLoginPswdCheckHelper_()
11371133 _WriteVarDefToPswdCheckJSFile_ " loginPswdCheckMsgStr" " $checkMsge "
11381134}
11391135
1140- # #----------------------------------------##
1141- # # Modified by Martinski W. [2025-Apr-07 ] ##
1142- # #----------------------------------------##
1136+ # #------------------------------------------ ##
1137+ # # Modified by ExtremeFiretop [2025-Apr-09 ] ##
1138+ # #------------------------------------------ ##
11431139_InitCustomDefaultsConfig_ ()
11441140{
11451141 [ ! -d " $SETTINGS_DIR " ] && mkdir -m 755 -p " $SETTINGS_DIR "
@@ -1158,6 +1154,7 @@ _InitCustomDefaultsConfig_()
11581154 echo " FW_New_Update_LOG_Preferred_Path=\" ${FW_Update_LOG_BASE_DefaultDIR} \" "
11591155 echo " FW_New_Update_EMail_CC_Name=TBD"
11601156 echo " FW_New_Update_EMail_CC_Address=TBD"
1157+ echo " FW_New_Update_Changelog_Approval=TBD"
11611158 echo " credentials_base64 TBD"
11621159 echo " CheckChangeLog ENABLED"
11631160 echo " FW_Update_Check TBD"
@@ -2852,7 +2849,7 @@ _SCRIPT_UPDATE_()
28522849
28532850 if [ " $SCRIPT_VERSION " = " $DLRepoVersion " ] && { [ -z " $DLRepoBuildNum " ] || [ " $DLRepoBuildNum " = " $ScriptBuildNum " ]; }
28542851 then
2855- echo -e " ${CYANct} You are on the latest version! Would you like to download anyways ?${NOct} "
2852+ echo -e " ${CYANct} You are on the latest version! Would you like to download anyway ?${NOct} "
28562853 echo -e " ${CYANct} This will overwrite your currently installed version.${NOct} "
28572854 if _WaitForYESorNO_
28582855 then
@@ -4350,9 +4347,9 @@ with the \"${GRNct}Web UI${NOct}\" access type on the \"Access restriction list\
43504347 return 1
43514348}
43524349
4353- # #----------------------------------------##
4354- # # Modified by Martinski W. [2025-Mar-07 ] ##
4355- # #----------------------------------------##
4350+ # #------------------------------------------ ##
4351+ # # Modified by ExtremeFiretop [2025-Apr-09 ] ##
4352+ # #------------------------------------------ ##
43564353_GetLoginCredentials_ ()
43574354{
43584355 local retry=" yes" userName savedMsgStr
@@ -4415,6 +4412,8 @@ _GetLoginCredentials_()
44154412 if _WaitForYESorNO_ " \nWould you like to test the current login credentials?"
44164413 then
44174414 _TestLoginCredentials_ " $loginCredsENC " || continue
4415+ else
4416+ _UpdateLoginPswdCheckHelper_ UNKNOWN
44184417 fi
44194418
44204419 # Stop the loop if the test passes or if the user chooses not to test #
@@ -7195,7 +7194,7 @@ _high_risk_phrases_interactive_()
71957194 if [ " $inMenuMode " = true ]
71967195 then
71977196 printf " \n ${REDct} *WARNING*: Found high-risk phrases in the changelog file.${NOct} "
7198- printf " \n ${REDct} Would you like to continue with the firmware update anyways ?${NOct} "
7197+ printf " \n ${REDct} Would you like to continue with the firmware update anyway ?${NOct} "
71997198 if ! _WaitForYESorNO_
72007199 then
72017200 Say " Exiting for changelog review."
@@ -10177,9 +10176,9 @@ _InvalidMenuSelection_()
1017710176 _WaitForEnterKey_
1017810177}
1017910178
10180- # #----------------------------------------##
10181- # # Modified by Martinski W. [2025-Feb-15 ] ##
10182- # #----------------------------------------##
10179+ # #------------------------------------------ ##
10180+ # # Modified by ExtremeFiretop [2025-Apr-09 ] ##
10181+ # #------------------------------------------ ##
1018310182_ShowMainMenuOptions_ ()
1018410183{
1018510184 local FW_NewUpdateVerStr FW_NewUpdateVersion
@@ -10261,8 +10260,10 @@ _ShowMainMenuOptions_()
1026110260 fi
1026210261 printf " \n${SEPstr} "
1026310262
10263+ loginStatusMsg=$( grep " ^var loginPswdCheckMsgStr =" " $PSWD_CHECK_JS " | awk -F" '" ' {print $2}' )
1026410264 printf " \n ${GRNct} 1${NOct} . Run F/W Update Check Now\n"
10265- printf " \n ${GRNct} 2${NOct} . Set Router Login Password\n"
10265+ printf " \n ${GRNct} 2${NOct} . Set Router Login Password"
10266+ printf " \n${padStr} [Currently ${InvBMGNct} $loginStatusMsg ${NOct} ]\n"
1026610267
1026710268 # Enable/Disable the ASUS Router's built-in "F/W Update Check" #
1026810269 FW_UpdateCheckState=" $( nvram get firmware_check_enable) "
0 commit comments