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-09
7+ # Last Modified: 2025-Apr-11
88# ##################################################################
99set -u
1010
@@ -7196,9 +7196,9 @@ _Toggle_ScriptAutoUpdate_Config_()
71967196 return " $retCode "
71977197}
71987198
7199- # #----------------------------------------##
7200- # # Modified by Martinski W. [2024-May-31 ] ##
7201- # #----------------------------------------##
7199+ # #------------------------------------------ ##
7200+ # # Modified by ExtremeFiretop [2025-Apr-11 ] ##
7201+ # #------------------------------------------ ##
72027202_high_risk_phrases_interactive_ ()
72037203{
72047204 local changelog_contents=" $1 "
@@ -7232,9 +7232,8 @@ _high_risk_phrases_interactive_()
72327232 Say " *WARNING*: Found high-risk phrases in the changelog file."
72337233 Say " Please run script interactively to approve the firmware update."
72347234 Update_Custom_Settings " FW_New_Update_Changelog_Approval" " BLOCKED"
7235- _SendEMailNotification_ STOP_FW_UPDATE_APPROVAL
72367235 _DoCleanUp_ 1
7237- _DoExit_ 1
7236+ return 1
72387237 fi
72397238 fi
72407239 else
@@ -7384,9 +7383,9 @@ _ChangelogVerificationCheck_()
73847383 fi
73857384}
73867385
7387- # #----------------------------------------##
7388- # # Modified by Martinski W. [2024-Nov-18 ] ##
7389- # #----------------------------------------##
7386+ # #------------------------------------------ ##
7387+ # # Modified by ExtremeFiretop [2025-Apr-11 ] ##
7388+ # #------------------------------------------ ##
73907389_ManageChangelogMerlin_ ()
73917390{
73927391 if [ $# -eq 0 ] || [ -z " $1 " ]
@@ -7447,7 +7446,16 @@ _ManageChangelogMerlin_()
74477446 else
74487447 if [ " $mode " = " download" ]
74497448 then
7450- _ChangelogVerificationCheck_ " auto"
7449+ if ! " $FlashStarted "
7450+ then
7451+ _ChangelogVerificationCheck_ " auto"
7452+ else
7453+ if ! _ChangelogVerificationCheck_ " interactive"
7454+ then
7455+ _SendEMailNotification_ STOP_FW_UPDATE_APPROVAL
7456+ return 1
7457+ fi
7458+ fi
74517459 elif [ " $mode " = " view" ]
74527460 then
74537461 clear
@@ -7465,9 +7473,9 @@ _ManageChangelogMerlin_()
74657473 return 0
74667474}
74677475
7468- # #----------------------------------------##
7469- # # Modified by Martinski W. [2024-Nov-18 ] ##
7470- # #----------------------------------------##
7476+ # #------------------------------------------ ##
7477+ # # Modified by ExtremeFiretop [2025-Apr-11 ] ##
7478+ # #------------------------------------------ ##
74717479_ManageChangelogGnuton_ ()
74727480{
74737481 if [ $# -eq 0 ] || [ -z " $1 " ]
@@ -7508,7 +7516,16 @@ _ManageChangelogGnuton_()
75087516 else
75097517 if [ " $mode " = " download" ]
75107518 then
7511- _ChangelogVerificationCheck_ " auto"
7519+ if ! " $FlashStarted "
7520+ then
7521+ _ChangelogVerificationCheck_ " auto"
7522+ else
7523+ if ! _ChangelogVerificationCheck_ " interactive"
7524+ then
7525+ _SendEMailNotification_ STOP_FW_UPDATE_APPROVAL
7526+ return 1
7527+ fi
7528+ fi
75127529 elif [ " $mode " = " view" ]
75137530 then
75147531 clear
@@ -7525,9 +7542,9 @@ _ManageChangelogGnuton_()
75257542 return 0
75267543}
75277544
7528- # #----------------------------------------##
7529- # # Modified by Martinski W. [2025-Jan-10 ] ##
7530- # #----------------------------------------##
7545+ # #------------------------------------------ ##
7546+ # # Modified by ExtremeFiretop [2025-Apr-11 ] ##
7547+ # #------------------------------------------ ##
75317548_CheckNewUpdateFirmwareNotification_ ()
75327549{
75337550 if [ $# -lt 2 ] || [ -z " $1 " ] || [ -z " $2 " ]
@@ -7570,14 +7587,11 @@ _CheckNewUpdateFirmwareNotification_()
75707587 Update_Custom_Settings FW_New_Update_Notification_Vers " $fwNewUpdateNotificationVers "
75717588 Update_Custom_Settings FW_New_Update_Notification_Date " $fwNewUpdateNotificationDate "
75727589 " $mountWebGUI_OK " && sendNewUpdateStatusEmail=true
7573- if ! " $FlashStarted "
7590+ if " $isGNUtonFW "
75747591 then
7575- if " $isGNUtonFW "
7576- then
7577- _ManageChangelogGnuton_ " download"
7578- else
7579- _ManageChangelogMerlin_ " download" " $fwNewUpdateNotificationVers "
7580- fi
7592+ _ManageChangelogGnuton_ " download"
7593+ else
7594+ _ManageChangelogMerlin_ " download" " $fwNewUpdateNotificationVers "
75817595 fi
75827596 fi
75837597 fi
@@ -7588,14 +7602,11 @@ _CheckNewUpdateFirmwareNotification_()
75887602 fwNewUpdateNotificationDate=" $( date +" $FW_UpdateNotificationDateFormat " ) "
75897603 Update_Custom_Settings FW_New_Update_Notification_Date " $fwNewUpdateNotificationDate "
75907604 " $mountWebGUI_OK " && sendNewUpdateStatusEmail=true
7591- if ! " $FlashStarted "
7605+ if " $isGNUtonFW "
75927606 then
7593- if " $isGNUtonFW "
7594- then
7595- _ManageChangelogGnuton_ " download"
7596- else
7597- _ManageChangelogMerlin_ " download" " $fwNewUpdateNotificationVers "
7598- fi
7607+ _ManageChangelogGnuton_ " download"
7608+ else
7609+ _ManageChangelogMerlin_ " download" " $fwNewUpdateNotificationVers "
75997610 fi
76007611 fi
76017612
@@ -10821,16 +10832,11 @@ _MainMenu_()
1082110832 done
1082210833}
1082310834
10824- # #-------------------------------------##
10825- # # Added by Martinski W. [2025-Jan-15] ##
10826- # #-------------------------------------##
10835+ # #------------------------------------------ ##
10836+ # # Modified by ExtremeFiretop [2025-Jan-15] ##
10837+ # #------------------------------------------ ##
1082710838_DoInitializationStartup_ ()
1082810839{
10829- if ! _CheckForMinimumRequirements_
10830- then
10831- printf " \n${CRITct} Minimum requirements for $SCRIPT_NAME were not met. See the reason(s) above.${NOct} \n"
10832- _DoExit_ 1
10833- fi
1083410840
1083510841 if [ $# -gt 0 ] && [ -n " $1 " ] && \
1083610842 echo " $1 " | grep -qE " ^(install|startup)$"
@@ -10849,6 +10855,12 @@ _DoInitializationStartup_()
1084910855 _AutoServiceEvent_ create 2> /dev/null
1085010856 fi
1085110857
10858+ if ! _CheckForMinimumRequirements_
10859+ then
10860+ printf " \n${CRITct} Minimum requirements for $SCRIPT_NAME were not met. See the reason(s) above.${NOct} \n"
10861+ return 1
10862+ fi
10863+
1085210864 _CheckAndSetBackupOption_
1085310865 _SetDefaultBuildType_
1085410866}
0 commit comments