You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Modified WebGUI page with checkmarks to give users the option to "Keep configuration file"
when uninstalling, and to "Bypass postponed days" when doing a F/W update check.
if (!confirm("NOTE:\nIf you have no postponement days set or remaining, the firmware could flash NOW!\nThis means logging you out of the WebUI and rebooting the router.\nContinue to check for firmware updates now?"))
let bypassPostponedDays =document.getElementById('BypassPostponedDays');
1177
+
if (!bypassPostponedDays.checked)
1178
+
{
1179
+
actionScriptVal ='start_MerlinAUcheckupdate';
1180
+
if (!confirm("NOTE:\nIf you have no postponement days set or remaining, the firmware may flash NOW!\nThis means logging you out of the WebUI and rebooting the router.\nContinue to check for firmware updates now?"))
if (!confirm("NOTE:\nThe firmware may flash NOW!\nThis means logging you out of the WebUI and rebooting the router.\nContinue to check for firmware updates now?"))
Say "The firmware update is expected to occur on or after ${GRNct}${upfwDateTimeStrn}${NOct}, depending on when your cron job is scheduled to check again."
7171
7173
return 1
7174
+
else
7175
+
Say "The firmware update is expected to occur on ${GRNct}${nextCronTimeSecs}${NOct}."
7172
7176
fi
7173
7177
7174
-
Say "The firmware update is expected to occur on ${GRNct}${nextCronTimeSecs}${NOct}."
7175
-
echo""
7176
-
7177
-
# Check if running in a menu environment #
7178
-
if"$isInteractive"&& _WaitForYESorNO_ "Would you like to proceed with the update now?"
7178
+
"$isInteractive"&& \
7179
+
printf"\n${BOLDct}Would you like to proceed with the update now${NOct}"
7180
+
if _WaitForYESorNO_ "$("$bypassPostponedDays"&&echo YES ||echo NO)"
7179
7181
thenreturn 0
7180
7182
elsereturn 1
7181
7183
fi
@@ -8818,22 +8820,22 @@ _DoInstallation_()
8818
8820
}
8819
8821
8820
8822
##----------------------------------------##
8821
-
## Modified by Martinski W. [2025-Jan-20] ##
8823
+
## Modified by Martinski W. [2025-Jan-22] ##
8822
8824
##----------------------------------------##
8823
8825
_DoUnInstallation_()
8824
8826
{
8827
+
"$isInteractive"&& \
8825
8828
printf"\n${BOLDct}Are you sure you want to uninstall $ScriptFileName script now${NOct}"
8826
8829
! _WaitForYESorNO_ &&return 0
8827
8830
8828
8831
if! _AcquireLock_ cliFileLock ;thenreturn 1 ;fi
8829
8832
8830
-
local doSaveConfig=false
8831
8833
local savedCFGPath="${SCRIPTS_PATH}/${SCRIPT_NAME}_CFG.SAVED.TXT"
8832
8834
8833
8835
printf"\n${BOLDct}Do you want to keep/save the $SCRIPT_NAME configuration file${NOct}"
8834
-
if _WaitForYESorNO_ NO
8836
+
if _WaitForYESorNO_ "$("$keepConfigFile"&&echo YES ||echo NO)"
8835
8837
then
8836
-
doSaveConfig=true
8838
+
keepConfigFile=true
8837
8839
mv -f "$CONFIG_FILE""$savedCFGPath"
8838
8840
fi
8839
8841
@@ -8864,7 +8866,7 @@ _DoUnInstallation_()
8864
8866
Say "${CRITct}**ERROR**: Uninstallation failed.${NOct}"
8865
8867
fi
8866
8868
8867
-
if"$doSaveConfig"
8869
+
if"$keepConfigFile"
8868
8870
then
8869
8871
if mkdir -p "$SETTINGS_DIR"
8870
8872
then
@@ -10291,7 +10293,7 @@ then
10291
10293
fi
10292
10294
10293
10295
##----------------------------------------##
10294
-
## Modified by Martinski W. [2024-Jan-15] ##
10296
+
## Modified by Martinski W. [2024-Jan-22] ##
10295
10297
##----------------------------------------##
10296
10298
if [ $#-gt 0 ]
10297
10299
then
@@ -10349,35 +10351,52 @@ then
10349
10351
uninstall) _DoUnInstallation_
10350
10352
;;
10351
10353
service_event)
10352
-
if [ "$2"="start" ] && [ "$3"="${SCRIPT_NAME}uninstall" ]
0 commit comments