- Notifications
You must be signed in to change notification settings - Fork 3
Fix for Email Notifications for New F/W Updates#568
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Uh oh!
There was an error while loading. Please reload this page.
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -4,16 +4,16 @@ | ||
| # | ||
| # Original Creation Date: 2023-Oct-01 by @ExtremeFiretop. | ||
| # Official Co-Author: @Martinski W. - Date: 2023-Nov-01 | ||
| # Last Modified: 2026-Apr-08 | ||
| # Last Modified: 2026-May-06 | ||
| ################################################################### | ||
| set -u | ||
| ## Set version for each Production Release ## | ||
| readonly SCRIPT_VERSION=1.6.1 | ||
| readonly SCRIPT_VERSTAG="26040823" | ||
| readonly SCRIPT_VERSION=1.6.2 | ||
| readonly SCRIPT_VERSTAG="26050619" | ||
| readonly SCRIPT_NAME="MerlinAU" | ||
| ## Set to "master" for Production Releases ## | ||
| SCRIPT_BRANCH="master" | ||
| SCRIPT_BRANCH="dev" | ||
| ##----------------------------------------## | ||
| ## Modified by Martinski W. [2024-Jul-03] ## | ||
| @@ -1028,7 +1028,7 @@ else | ||
| ## Set 20 minutes AFTER for APs and AiMesh Nodes ## | ||
| readonly FW_Update_CRON_DefaultSchedule="20 0 * * *" | ||
| fi | ||
| readonly meshUpdate_WaitSecs=8 | ||
| readonly meshUpdate_WaitSecs=6 | ||
| ## Recommended 15 minutes BEFORE the F/W Update ## | ||
| readonly ScriptAU_CRON_DefaultSchedule="45 23 * * *" | ||
| @@ -5390,7 +5390,7 @@ _GetLatestFWUpdateVersionFromNode_() | ||
| } | ||
| ##----------------------------------------## | ||
| ## Modified by Martinski W. [2024-Jun-05] ## | ||
| ## Modified by Martinski W. [2026-May-06] ## | ||
| ##----------------------------------------## | ||
| _GetLatestFWUpdateVersionFromWebsite_() | ||
| { | ||
| @@ -5420,6 +5420,11 @@ _GetLatestFWUpdateVersionFromWebsite_() | ||
| then echo "**ERROR** **NO_URL**" ; return 1 | ||
| fi | ||
| ## Make sure "386.xx" versions have '3004.' prefix ## | ||
| if echo "$versionStr" | grep -qE '^386[.][0-9]+' | ||
| then versionStr="3004.$versionStr" | ||
| fi | ||
| echo "$versionStr" | ||
| echo "$correct_link" | ||
| return 0 | ||
| @@ -6669,7 +6674,7 @@ _Calculate_NextRunTime_() | ||
| if [ -z "$fwNewUpdateNotificationDate" ] || \ | ||
| [ "$fwNewUpdateNotificationDate" = "TBD" ] | ||
| then | ||
| fwNewUpdateNotificationDate="$(date +%Y-%m-%d_%H:%M:%S)" | ||
| fwNewUpdateNotificationDate="$(date +"$FW_UpdateNotificationDateFormat")" | ||
ExtremeFiretop marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| fi | ||
| upfwDateTimeSecs="$(_Calculate_DST_ "$(echo "$fwNewUpdateNotificationDate" | sed 's/_/ /g')")" | ||
| @@ -8299,9 +8304,9 @@ _ManageChangelogGnuton_() | ||
| return 0 | ||
| } | ||
| ##------------------------------------------## | ||
| ## Modified by ExtremeFiretop [2025-Apr-11] ## | ||
| ##------------------------------------------## | ||
| ##----------------------------------------## | ||
| ## Modified by Martinski W. [2026-May-06] ## | ||
| ##----------------------------------------## | ||
| _CheckNewUpdateFirmwareNotification_() | ||
| { | ||
| if [ $# -lt 2 ] || [ -z "$1" ] || [ -z "$2" ] | ||
| @@ -8334,6 +8339,8 @@ _CheckNewUpdateFirmwareNotification_() | ||
| then | ||
| fwNewUpdateNotificationVers="$releaseVersionStr" | ||
| Update_Custom_Settings FW_New_Update_Notification_Vers "$fwNewUpdateNotificationVers" | ||
| # Reset for newer F/W version updates # | ||
| Update_Custom_Settings FW_New_Update_Notification_Date TBD | ||
ExtremeFiretop marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| else | ||
| numOfFields="$(echo "$fwNewUpdateNotificationVers" | awk -F '.' '{print NF}')" | ||
| fwNewUpdateVersNum="$(_FWVersionStrToNum_ "$fwNewUpdateNotificationVers" "$numOfFields")" | ||
| @@ -10624,7 +10631,7 @@ _ProcessMeshNodes_() | ||
| wait | ||
| # ---- Single wait ---- # | ||
| local waitSeconds="${meshUpdate_WaitSecs:-8}" | ||
| local waitSeconds="${meshUpdate_WaitSecs:-6}" | ||
| if "$includeExtraLogic" | ||
| then | ||
| local waitMsg="Please wait while we query the node(s) for status..." | ||
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.