From ece91e75fc4df61c12b91556a3f75e5a2833f738 Mon Sep 17 00:00:00 2001 From: Martinski <119833648+Martinski4GitHub@users.noreply.github.com> Date: Sun, 10 Aug 2025 21:42:04 -0700 Subject: [PATCH 1/4] Manual F/W Update Checks When Automatic Switch is Disabled - Modified code to allow users to perform manual F/W Update checks via the menu option even when the "Automatic F/W Update Checks" functionality is disabled. - Minor changes to show additional version tag when running the 'development' branch version. This allows user to quickly and easily check if they're running the latest 'development' version for testing & validation purposes. --- MerlinAU.sh | 53 ++++++++++++++++++++++++++++++++++++++++------------- README.md | 4 ++-- version.txt | 2 +- 3 files changed, 43 insertions(+), 16 deletions(-) diff --git a/MerlinAU.sh b/MerlinAU.sh index 05c96eeb..a01f7029 100644 --- a/MerlinAU.sh +++ b/MerlinAU.sh @@ -4,12 +4,13 @@ # # Original Creation Date: 2023-Oct-01 by @ExtremeFiretop. # Official Co-Author: @Martinski W. - Date: 2023-Nov-01 -# Last Modified: 2025-Aug-05 +# Last Modified: 2025-Aug-10 ################################################################### set -u ## Set version for each Production Release ## -readonly SCRIPT_VERSION=1.5.2 +readonly SCRIPT_VERSION=1.5.3 +readonly SCRIPT_VERSTAG="25081021" readonly SCRIPT_NAME="MerlinAU" ## Set to "master" for Production Releases ## SCRIPT_BRANCH="dev" @@ -77,6 +78,12 @@ readonly ScriptFileName="${0##*/}" readonly ScriptFNameTag="${ScriptFileName%%.*}" readonly ScriptDirNameD="${ScriptFNameTag}.d" +if [ "$SCRIPT_BRANCH" = "dev" ] +then readonly branchx_TAG="Branch: development" +else readonly branchx_TAG="Branch: $SCRIPT_BRANCH" +fi +readonly version_TAG="${SCRIPT_VERSION}_${SCRIPT_VERSTAG}" + ##----------------------------------------## ## Modified by Martinski W. [2025-Jan-15] ## ##----------------------------------------## @@ -536,8 +543,9 @@ _ShowAbout_() clear _ShowLogo_ + + printf "About ${MGNTct}${SCRIPT_VERS_INFO}${NOct}\n" cat <&1 + sleep 2 + fi fi #------------------------------------------------------ @@ -10116,8 +10138,8 @@ _ConfirmCronJobForFWAutoUpdates_() fi ##------------------------------------------------------------## - # If 'runfwUpdateCheck' is true and built-in script is found - # run the built-in F/W Update check in the background. + # If 'runfwUpdateCheck' is true and the built-in script is + # present then execute the built-in F/W Update check now. ##------------------------------------------------------------## if "$runfwUpdateCheck" && [ -x "$FW_UpdateCheckScript" ] then @@ -11138,6 +11160,11 @@ _Gnuton_Check_Webs_Update_Script_() fi } +if [ "$SCRIPT_BRANCH" = "master" ] +then SCRIPT_VERS_INFO="[$branchx_TAG]" +else SCRIPT_VERS_INFO="[$version_TAG, $branchx_TAG]" +fi + ## Set variable to 'false' to stop the check ## checkWebsUpdateScriptForGnuton="$isGNUtonFW" _Gnuton_Check_Webs_Update_Script_ diff --git a/README.md b/README.md index de50bb59..7402d3d9 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # MerlinAU - AsusWRT-Merlin Firmware Auto Updater -## v1.5.2 -## 2025-Aug-05 +## v1.5.3 +## 2025-Aug-10 ## WebUI: ![image](https://github.com/user-attachments/assets/9c1dff99-9c13-491b-a7fa-aff924d5f02e) diff --git a/version.txt b/version.txt index 4cda8f19..8af85beb 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -1.5.2 +1.5.3 From b4e91b548e11506e1dc9d4caa791339c1dcf7e0c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 12 Aug 2025 09:49:04 +0000 Subject: [PATCH 2/4] Bump actions/checkout from 4.2.2 to 5.0.0 in the all-actions group Bumps the all-actions group with 1 update: [actions/checkout](https://github.com/actions/checkout). Updates `actions/checkout` from 4.2.2 to 5.0.0 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4.2.2...v5.0.0) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: 5.0.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: all-actions ... Signed-off-by: dependabot[bot] --- .github/workflows/Create-NewReleases.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/Create-NewReleases.yml b/.github/workflows/Create-NewReleases.yml index ee5e14a4..c37fbed2 100644 --- a/.github/workflows/Create-NewReleases.yml +++ b/.github/workflows/Create-NewReleases.yml @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout source code - uses: actions/checkout@v4.2.2 + uses: actions/checkout@v5.0.0 with: fetch-depth: 0 ref: 'main' # Ensure we're tagging the main branch after the merge From 60216c965713551ed82daa87436c06218890c836 Mon Sep 17 00:00:00 2001 From: Martinski <119833648+Martinski4GitHub@users.noreply.github.com> Date: Wed, 13 Aug 2025 19:24:43 -0700 Subject: [PATCH 3/4] Fixed Issue with Uninstallation on Gnuton F/W On Gnuton F/W, there was an issue that generated an error and was preventing a full uninstallation of MerlinAU. --- MerlinAU.sh | 8 +++++--- README.md | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/MerlinAU.sh b/MerlinAU.sh index a01f7029..c1050432 100644 --- a/MerlinAU.sh +++ b/MerlinAU.sh @@ -4,13 +4,13 @@ # # Original Creation Date: 2023-Oct-01 by @ExtremeFiretop. # Official Co-Author: @Martinski W. - Date: 2023-Nov-01 -# Last Modified: 2025-Aug-10 +# Last Modified: 2025-Aug-13 ################################################################### set -u ## Set version for each Production Release ## readonly SCRIPT_VERSION=1.5.3 -readonly SCRIPT_VERSTAG="25081021" +readonly SCRIPT_VERSTAG="25081319" readonly SCRIPT_NAME="MerlinAU" ## Set to "master" for Production Releases ## SCRIPT_BRANCH="dev" @@ -9630,7 +9630,7 @@ _DoInstallation_() } ##----------------------------------------## -## Modified by Martinski W. [2025-Apr-11] ## +## Modified by Martinski W. [2025-Aug-13] ## ##----------------------------------------## _DoUnInstallation_() { @@ -9667,6 +9667,8 @@ _DoUnInstallation_() _AutoServiceEvent_ delete 2>/dev/null fi + "$isGNUtonFW" && umount "$FW_UpdateCheckScript" 2>/dev/null + if rm -fr "${SETTINGS_DIR:?}" && \ rm -fr "${SCRIPT_WEB_DIR:?}" && \ rm -fr "${FW_BIN_BASE_DIR:?}/$ScriptDirNameD" && \ diff --git a/README.md b/README.md index 7402d3d9..742937db 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # MerlinAU - AsusWRT-Merlin Firmware Auto Updater ## v1.5.3 -## 2025-Aug-10 +## 2025-Aug-13 ## WebUI: ![image](https://github.com/user-attachments/assets/9c1dff99-9c13-491b-a7fa-aff924d5f02e) From f72289da3e16e5512991b0ff2145c52548972715 Mon Sep 17 00:00:00 2001 From: ExtremeFiretop Date: Thu, 14 Aug 2025 09:16:14 -0400 Subject: [PATCH 4/4] Don't purge the configuration file early Don't purge the configuration file early --- MerlinAU.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/MerlinAU.sh b/MerlinAU.sh index c1050432..49f5abe9 100644 --- a/MerlinAU.sh +++ b/MerlinAU.sh @@ -9568,7 +9568,6 @@ _CheckForMinimumRequirements_() "$requirementsCheckOK" && return 0 - rm -f "$CONFIG_FILE" return 1 }