mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-08-23 06:15:15 -04:00
minor
This commit is contained in:
parent
450ff378b0
commit
2860560edb
5 changed files with 26 additions and 30 deletions
|
@ -15,21 +15,20 @@ ram_wipe_check_needshutdown() {
|
|||
if [ "$wipe_action" = "reboot" ]; then
|
||||
reboot -f
|
||||
fi
|
||||
|
||||
|
||||
if [ "$wipe_action" = "poweroff" ]; then
|
||||
poweroff -f
|
||||
fi
|
||||
|
||||
|
||||
if [ "$wipe_action" = "halt" ]; then
|
||||
halt -f
|
||||
fi
|
||||
|
||||
|
||||
if [ "$wipe_action" = "error" ]; then
|
||||
info "Choice of shutdown option led to an error. Shutting down..."
|
||||
sleep 5
|
||||
poweroff -f
|
||||
info "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