44#
55# Original Creation Date: 2023-Oct-01 by @ExtremeFiretop.
66# Official Co-Author: @Martinski W. - Date: 2023-Nov-01
7- # Last Modified: 2024-Jan-21
7+ # Last Modified: 2024-Jan-22
88# ##################################################################
99set -u
1010
11- readonly SCRIPT_VERSION=" 0.2.53 "
11+ readonly SCRIPT_VERSION=" 0.2.54 "
1212readonly SCRIPT_NAME=" MerlinAU"
1313
1414# #-------------------------------------##
@@ -1243,7 +1243,7 @@ check_version_support() {
12431243
12441244check_model_support () {
12451245 # List of unsupported models as a space-separated string
1246- local unsupported_models=" RT-AC87U RT-AC56U RT-AC66U RT-AC3200 RT-N66U"
1246+ local unsupported_models=" RT-AC87U RT-AC56U RT-AC66U RT-AC3200 RT-N66U RT-AC88U RT-AC5300 RT-AC3100 RT-AC68U RT-AC66U_B1 RT-AC1900 "
12471247
12481248 # Get the current model
12491249 local current_model=" $( _GetRouterProductID_) "
@@ -1907,7 +1907,7 @@ Please manually update to version $minimum_supported_version or higher to use th
19071907 fi
19081908
19091909 # #---------------------------------------##
1910- # # Added by ExtremeFiretop [2024-Jan-06 ] ##
1910+ # # Added by ExtremeFiretop [2024-Jan-22 ] ##
19111911 # #---------------------------------------##
19121912 availableRAM_kb=$( _GetAvailableRAM_KB_)
19131913 Say " Required RAM: ${required_space_kb} KB - Available RAM: ${availableRAM_kb} KB"
@@ -1956,7 +1956,7 @@ Please manually update to version $minimum_supported_version or higher to use th
19561956
19571957 # Detect ROG and pure firmware files
19581958 rog_file=" $( ls | grep -i ' _rog_' ) "
1959- pure_file=" $( ls -1 | grep -iE ' .*[.](w|pkgtb|trx )$' | grep -iv ' rog' ) "
1959+ pure_file=" $( ls -1 | grep -iE ' .*[.](w|pkgtb)$' | grep -iv ' rog' ) "
19601960
19611961 # Fetch the previous choice from the settings file
19621962 previous_choice=" $( Get_Custom_Setting " ROGBuild" ) "
@@ -2316,7 +2316,7 @@ FW_NewUpdateVersion="$(_GetLatestFWUpdateVersionFromRouter_ 1)"
23162316FW_InstalledVersion=" ${GRNct} $( _GetCurrentFWInstalledLongVersion_) ${NOct} "
23172317
23182318# #------------------------------------------##
2319- # # Modified by ExtremeFiretop [2024-Jan-06 ] ##
2319+ # # Modified by ExtremeFiretop [2024-Jan-22 ] ##
23202320# #------------------------------------------##
23212321show_menu ()
23222322{
@@ -2412,9 +2412,9 @@ A USB drive is required for F/W updates.\n"
24122412 current_build_type_menu=" Not Set"
24132413 fi
24142414
2415- if [ " $current_build_type " = " y " ] || [ " $current_build_type " = " n " ] ; then
2415+ if echo " $PRODUCT_ID " | grep -q " ^GT- " ; then
24162416 # Display the option with the current build type
2417- printf " \n ${GRNct} 8${NOct} . Change F/W Build Type"
2417+ printf " \n ${GRNct} 8${NOct} . Change ROG F/W Build Type"
24182418 printf " \n${padStr} [Current Build Type: ${GRNct}${current_build_type_menu}${NOct} ]\n"
24192419 fi
24202420
@@ -2429,9 +2429,9 @@ A USB drive is required for F/W updates.\n"
24292429 printf " ${SEPstr} \n"
24302430}
24312431
2432- # #----------------------------------------##
2433- # # Modified by Martinski W. [2023-Dec-26 ] ##
2434- # #----------------------------------------##
2432+ # #------------------------------------------ ##
2433+ # # Modified by ExtremeFiretop [2024-Jan-22 ] ##
2434+ # #------------------------------------------ ##
24352435# Main Menu loop
24362436inMenuMode=true
24372437theExitStr=" ${GRNct} e${NOct} =Exit to main menu"
24652465 ;;
24662466 7) _Set_FW_UpdateLOG_DirectoryPath_
24672467 ;;
2468- 8) if [ " $local_choice_set " = " y " ] || [ " $local_choice_set " = " n " ] ; then
2468+ 8) if echo " $PRODUCT_ID " | grep -q " ^GT- " ; then
24692469 change_build_type && _WaitForEnterKey_ ; fi
24702470 ;;
24712471 up) _SCRIPTUPDATE_
0 commit comments