mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-05-02 08:26:01 -04:00
Checking job queue instead of dbus
This commit is contained in:
parent
4b7053a635
commit
7cf51a1b43
3 changed files with 29 additions and 21 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue