Skip to content

Commit 80f19ab

Browse files
Merge pull request #114 from ExtremeFiretop/dev
Dev 1.0.2 Next Stable Release
2 parents dc99d80 + bbdf121 commit 80f19ab

File tree

2 files changed

+31
-21
lines changed

2 files changed

+31
-21
lines changed

MerlinAU.sh

Lines changed: 30 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
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-31
7+
# Last Modified: 2024-Feb-01
88
###################################################################
99
set -u
1010

1111
#For AMTM versioning:
12-
readonly SCRIPT_VERSION=1.0.1
12+
readonly SCRIPT_VERSION=1.0.2
1313
readonly SCRIPT_NAME="MerlinAU"
1414

1515
##-------------------------------------##
@@ -446,6 +446,20 @@ readonly PRODUCT_ID="$(_GetRouterProductID_)"
446446
readonly FW_FileName="${PRODUCT_ID}_firmware"
447447
readonly FW_URL_RELEASE="${FW_URL_BASE}/${PRODUCT_ID}/${FW_URL_RELEASE_SUFFIX}/"
448448

449+
##------------------------------------------##
450+
## Modified by ExtremeFiretop [2024-Feb-01] ##
451+
##------------------------------------------##
452+
logo() {
453+
echo -e "${YLWct}"
454+
echo -e " __ __ _ _ _ _ "
455+
echo -e " | \/ | | (_) /\ | | | |"
456+
echo -e " | \ / | ___ _ __| |_ _ __ / \ | | | |"
457+
echo -e " | |\/| |/ _ | '__| | | '_ \ / /\ \| | | |"
458+
echo -e " | | | | __| | | | | | | |/ ____ | |__| |"
459+
echo -e " |_| |_|\___|_| |_|_|_| |_/_/ \_\____/ ${GRNct}v${SCRIPT_VERSION}"
460+
echo -e " ${NOct}"
461+
}
462+
449463
##-----------------------------------------------##
450464
## Modified by: ExtremeFiretop [2023-Dec-16] ##
451465
##-----------------------------------------------##
@@ -586,20 +600,6 @@ _ValidateUSBMountPoint_()
586600
"$foundPathOK" && return 0 || return 1
587601
}
588602

589-
##----------------------------------------##
590-
## Added by ExtremeFiretop [2023-Nov-26] ##
591-
##----------------------------------------##
592-
logo() {
593-
echo -e "${YLWct}"
594-
echo -e " __ __ _ _ _ _ "
595-
echo -e " | \/ | | (_) /\ | | | |"
596-
echo -e " | \ / | ___ _ __| |_ _ __ / \ | | | |"
597-
echo -e " | |\/| |/ _ | '__| | | '_ \ / /\ \| | | |"
598-
echo -e " | | | | __| | | | | | | |/ ____ | |__| |"
599-
echo -e " |_| |_|\___|_| |_|_|_| |_/_/ \_\____/ ${GRNct}v${SCRIPT_VERSION}"
600-
echo -e " ${NOct}"
601-
}
602-
603603
##----------------------------------------##
604604
## Modified by Martinski W. [2023-Nov-24] ##
605605
##----------------------------------------##
@@ -2569,7 +2569,7 @@ Please manually update to version $minimum_supported_version or higher to use th
25692569
cd "$FW_BIN_DIR"
25702570

25712571
##------------------------------------------##
2572-
## Modified by ExtremeFiretop [2024-Jan-30] ##
2572+
## Modified by ExtremeFiretop [2024-Feb-01] ##
25732573
##------------------------------------------##
25742574
local checkChangeLogSetting="$(Get_Custom_Setting "CheckChangeLog")"
25752575

@@ -2627,7 +2627,7 @@ Please manually update to version $minimum_supported_version or higher to use th
26272627
Say "Warning: Found high-risk phrases in the change-logs."
26282628
Say "Please run script interactively to approve the upgrade."
26292629
_SendEMailNotification_ STOP_FW_UPDATE_APPROVAL
2630-
_DoCleanUp 1
2630+
_DoCleanUp_ 1
26312631
_DoExit_ 1
26322632
fi
26332633
else
@@ -2682,13 +2682,23 @@ Please manually update to version $minimum_supported_version or higher to use th
26822682
firmware_file="$pure_file"
26832683
fi
26842684

2685+
##------------------------------------------##
2686+
## Modified by ExtremeFiretop [2024-Feb-01] ##
2687+
##------------------------------------------##
2688+
26852689
if [ -f "sha256sum.sha256" ] && [ -f "$firmware_file" ]; then
26862690
fw_sig="$(openssl sha256 "$firmware_file" | cut -d' ' -f2)"
26872691
dl_sig="$(grep "$firmware_file" sha256sum.sha256 | cut -d' ' -f1)"
26882692
if [ "$fw_sig" != "$dl_sig" ]; then
26892693
Say "${REDct}**ERROR**${NOct}: Extracted firmware does not match the SHA256 signature!"
2690-
"$inMenuMode" && _WaitForEnterKey_ "$menuReturnPromptStr"
2691-
return 1
2694+
_DoCleanUp_ 1
2695+
if [ "$inMenuMode" = true ]; then
2696+
_WaitForEnterKey_ "$menuReturnPromptStr"
2697+
return 1
2698+
else
2699+
# Assume non-interactive mode; perform exit.
2700+
_DoExit_ 1
2701+
fi
26922702
fi
26932703
fi
26942704

version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.1
1+
1.0.2

0 commit comments

Comments
 (0)