Skip to content

Commit 7fed3e1

Browse files
Update MerlinAU.sh
1 parent aef5d0f commit 7fed3e1

File tree

1 file changed

+26
-38
lines changed

1 file changed

+26
-38
lines changed

MerlinAU.sh

Lines changed: 26 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1659,20 +1659,6 @@ _Migrate_Settings_()
16591659
fi
16601660
}
16611661

1662-
##------------------------------------------##
1663-
## Modified by ExtremeFiretop [2024-Jun-03] ##
1664-
##------------------------------------------##
1665-
# NOTE:
1666-
# ROG upgrades to 3006 codebase should have
1667-
# the ROG option deleted.
1668-
#-----------------------------------------------------------
1669-
if ! "$isGNUtonFW"
1670-
then
1671-
if [ "$fwInstalledBaseVers" -ge 3006 ] && \
1672-
grep -q "^ROGBuild" "$CONFIG_FILE"
1673-
then Delete_Custom_Settings "ROGBuild" ; fi
1674-
fi
1675-
16761662
##------------------------------------------##
16771663
## Modified by ExtremeFiretop [2024-Jan-27] ##
16781664
##------------------------------------------##
@@ -4803,8 +4789,10 @@ _ChangeBuildType_TUF_()
48034789
do
48044790
printf "\n${SEPstr}"
48054791
printf "\nChoose your preferred option for the build type to flash:\n"
4806-
printf "\n ${GRNct}1${NOct}. Original ${REDct}TUF${NOct} themed user interface${NOct}\n"
4807-
printf "\n ${GRNct}2${NOct}. Pure ${GRNct}non-TUF${NOct} themed user interface ${GRNct}(Recommended)${NOct}\n"
4792+
printf "\n ${GRNct}1${NOct}. Original ${REDct}TUF${NOct} themed user interface"
4793+
printf "\n ${REDct}(applies only if TUF F/W is available; otherwise, defaults to Pure Build)${NOct}\n"
4794+
printf "\n ${GRNct}2${NOct}. Pure ${GRNct}non-TUF${NOct} themed user interface"
4795+
printf "\n ${GRNct}(Recommended)${NOct}\n"
48084796
printf "\n ${GRNct}e${NOct}. Exit to Advanced Menu\n"
48094797
printf "${SEPstr}\n"
48104798
printf "[$display_choice] Enter selection: "
@@ -4816,7 +4804,9 @@ _ChangeBuildType_TUF_()
48164804
then doReturnToMenu=true ; break ; fi
48174805

48184806
case $choice in
4819-
1) buildtypechoice="ENABLED" ; break
4807+
1) buildtypechoice="ENABLED"
4808+
printf "${CYANct}\nNote: The TUF Build will only apply if a compatible TUF firmware image is available. Otherwise, the Pure Build will be used.${NOct}\n"
4809+
break
48204810
;;
48214811
2) buildtypechoice="DISABLED" ; break
48224812
;;
@@ -4863,8 +4853,10 @@ _ChangeBuildType_ROG_()
48634853
do
48644854
printf "\n${SEPstr}"
48654855
printf "\nChoose your preferred option for the build type to flash:\n"
4866-
printf "\n ${GRNct}1${NOct}. Original ${REDct}ROG${NOct} themed user interface${NOct}\n"
4867-
printf "\n ${GRNct}2${NOct}. Pure ${GRNct}non-ROG${NOct} themed user interface ${GRNct}(Recommended)${NOct}\n"
4856+
printf "\n ${GRNct}1${NOct}. Original ${REDct}ROG${NOct} themed user interface"
4857+
printf "\n ${REDct}(applies only if TUF F/W is available; otherwise, defaults to Pure Build)${NOct}\n"
4858+
printf "\n ${GRNct}2${NOct}. Pure ${GRNct}non-ROG${NOct} themed user interface"
4859+
printf "\n ${GRNct}(Recommended)${NOct}\n"
48684860
printf "\n ${GRNct}e${NOct}. Exit to Advanced Menu\n"
48694861
printf "${SEPstr}\n"
48704862
printf "[$display_choice] Enter selection: "
@@ -4876,7 +4868,9 @@ _ChangeBuildType_ROG_()
48764868
then doReturnToMenu=true ; break ; fi
48774869

48784870
case $choice in
4879-
1) buildtypechoice="ENABLED" ; break
4871+
1) buildtypechoice="ENABLED"
4872+
printf "${CYANct}\nNote: The ROG Build will only apply if a compatible ROG firmware image is available. Otherwise, the Pure Build will be used.${NOct}\n"
4873+
break
48804874
;;
48814875
2) buildtypechoice="DISASLED" ; break
48824876
;;
@@ -9189,19 +9183,17 @@ _CheckAndSetBackupOption_() {
91899183
## Added by ExtremeFiretop [2025-Feb-08] ##
91909184
##---------------------------------------##
91919185
_SetDefaultBuildType_() {
9192-
if echo "$PRODUCT_ID" | grep -q "^TUF-"; then
9193-
if [ "$(Get_Custom_Setting "TUFBuild")" = "TBD" ]; then
9194-
Update_Custom_Settings "TUFBuild" "DISABLED"
9195-
fi
9196-
elif [ "$fwInstalledBaseVers" -le 3004 ] && echo "$PRODUCT_ID" | grep -q "^GT-"; then
9197-
if [ "$(Get_Custom_Setting "ROGBuild")" = "TBD" ]; then
9198-
Update_Custom_Settings "ROGBuild" "DISABLED"
9199-
fi
9200-
elif [ "$fwInstalledBaseVers" -ge 3006 ] && "$isGNUtonFW" && echo "$PRODUCT_ID" | grep -q "^GT-"; then
9201-
if [ "$(Get_Custom_Setting "ROGBuild")" = "TBD" ]; then
9202-
Update_Custom_Settings "ROGBuild" "DISABLED"
9203-
fi
9204-
fi
9186+
if echo "$PRODUCT_ID" | grep -q "^TUF-"
9187+
then
9188+
if [ "$(Get_Custom_Setting "TUFBuild")" = "TBD" ]
9189+
then Update_Custom_Settings "TUFBuild" "DISABLED"
9190+
fi
9191+
elif echo "$PRODUCT_ID" | grep -q "^GT-"
9192+
then
9193+
if [ "$(Get_Custom_Setting "ROGBuild")" = "TBD" ]
9194+
then Update_Custom_Settings "ROGBuild" "DISABLED"
9195+
fi
9196+
fi
92059197
}
92069198

92079199
##-------------------------------------##
@@ -10134,11 +10126,7 @@ _AdvancedOptionsMenu_()
1013410126
;;
1013510127
bt) if echo "$PRODUCT_ID" | grep -q "^TUF-"
1013610128
then _ChangeBuildType_TUF_
10137-
elif [ "$fwInstalledBaseVers" -le 3004 ] && \
10138-
echo "$PRODUCT_ID" | grep -q "^GT-"
10139-
then _ChangeBuildType_ROG_
10140-
elif [ "$fwInstalledBaseVers" -ge 3006 ] && "$isGNUtonFW" && \
10141-
echo "$PRODUCT_ID" | grep -q "^GT-"
10129+
elif echo "$PRODUCT_ID" | grep -q "^GT-"
1014210130
then _ChangeBuildType_ROG_
1014310131
else _InvalidMenuSelection_
1014410132
fi

0 commit comments

Comments
 (0)