Checking job queue instead of dbus

This commit is contained in:
Friedrich Doku 2023-01-06 21:32:57 -05:00
parent 4b7053a635
commit 7cf51a1b43
3 changed files with 29 additions and 21 deletions

View file

@ -15,6 +15,10 @@ ram_wipe_check_needshutdown() {
if [ "$wipe_action" = "reboot" ]; then
reboot -f
fi
if [ "$wipe_action" = "kexec" ]; then
reboot -f
fi
if [ "$wipe_action" = "poweroff" ]; then
poweroff -f
@ -23,6 +27,12 @@ ram_wipe_check_needshutdown() {
if [ "$wipe_action" = "halt" ]; then
halt -f
fi
if [ "$wipe_action" = "error" ]; then
echo "Choice of shutdown option led to an error. Shutting down..."
sleep 5
poweroff -f
fi
}
ram_wipe_check_needshutdown