Skip to content

Commit

Permalink
various updates - see description
Browse files Browse the repository at this point in the history
fixed: "Once" download scan doesn't check all packages
fixed: package checks run unnecessarily until time syncs with NTP
		after an unclean shutdown
base script prechecks on file modificaiton times to eliminate unnecessary work
setupHelper uninstall and reboots/gui restarts moved from PackageManager main
		to separate script
add TailscaleGX to default package list
updatePackage: changed HelperResources version checking to minimize prompts
  • Loading branch information
kwindrem committed Apr 23, 2024
1 parent dd7d9ca commit 288f82a
Show file tree
Hide file tree
Showing 13 changed files with 396 additions and 318 deletions.
4 changes: 0 additions & 4 deletions FileSets/VersionIndependent/PageSettingsPackageEdit.qml
Original file line number Diff line number Diff line change
Expand Up @@ -217,13 +217,9 @@ MbPage {
else if (showActionNeeded)
{
if (actionNeeded.indexOf ( "REBOOT" ) != -1 )
{
sendCommand ( 'reboot', true )
}
else if (actionNeeded.indexOf ( "restart" ) != -1 )
{
sendCommand ( 'restartGui', true )
}
}
requestedAction = ''
}
Expand Down
8 changes: 4 additions & 4 deletions FileSets/VersionIndependent/PageSettingsPackageManager.qml
Original file line number Diff line number Diff line change
Expand Up @@ -82,22 +82,22 @@ MbPage {
{
if (! actionNeeded.valid)
return ""
else if (actionNeeded.value == 'reboot')
else if (actionNeeded.value.indexOf ( "REBOOT" ) != -1 )
return qsTr ("Reboot")
else if (actionNeeded.value == 'guiRestart')
else if (actionNeeded.value.indexOf ( "restart" ) != -1 )
return qsTr ("Restart GUI")
else
return ""
}
onClicked:
{
if (actionNeeded.value == 'reboot')
if (finishButton.value == 'REBOOT')
{
// needs immediate update because GUI will be going down ASAP
finishButton.description = qsTr ("REBOOTING ...")
editAction.setValue ( 'reboot' )
}
else if (actionNeeded.value == 'guiRestart')
else if (finishButton.value == 'guiRestart')
{
// needs immediate update because GUI will be going down ASAP
finishButton.description = qsTr ("restarting GUI ...")
Expand Down
78 changes: 39 additions & 39 deletions HelperResources/CommonResources
Original file line number Diff line number Diff line change
Expand Up @@ -1351,45 +1351,45 @@ deferGuiRestart=false
userInteraction=true
runFromPm=false
while [ $# -gt 0 ]; do
case $1 in
"reinstall")
reinstall=true
;;
"force")
force=true
;;
"deferReboot")
deferReboot=true
;;
"deferGuiRestart")
deferGuiRestart=true
;;
"install")
scriptAction='INSTALL'
;;
"uninstall")
scriptAction='UNINSTALL'
;;
"auto")
logToConsole=false
userInteraction=false
;;
"runFromPm")
runFromPm=true
logToConsole=false
userInteraction=false
deferReboot=true
deferGuiRestart=true
;;
"check")
# if no other actions were set, set it here
# but allow other actions to override this one
if [ $scriptAction == 'NONE' ]; then
scriptAction='CHECK'
fi
;;
*)
esac
case $1 in
"reinstall")
reinstall=true
;;
"force")
force=true
;;
"deferReboot")
deferReboot=true
;;
"deferGuiRestart")
deferGuiRestart=true
;;
"install")
scriptAction='INSTALL'
;;
"uninstall")
scriptAction='UNINSTALL'
;;
"auto")
logToConsole=false
userInteraction=false
;;
"runFromPm")
runFromPm=true
logToConsole=false
userInteraction=false
deferReboot=true
deferGuiRestart=true
;;
"check")
# if no other actions were set, set it here
# but allow other actions to override this one
if [ $scriptAction == 'NONE' ]; then
scriptAction='CHECK'
fi
;;
*)
esac
shift
done

Expand Down
2 changes: 1 addition & 1 deletion HelperResources/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v8.0~20
v8.0~23
Loading

0 comments on commit 288f82a

Please sign in to comment.