mirror of
https://github.com/Kicksecure/security-misc.git
synced 2024-10-01 08:25:45 -04:00
long options
This commit is contained in:
parent
1e19c2cbad
commit
20596488be
@ -13,21 +13,21 @@ ram_wipe_check_needshutdown() {
|
||||
info "wipe-ram.sh wiperamexit: DONE WAITING..."
|
||||
|
||||
if [ "$wipe_action" = "reboot" ]; then
|
||||
reboot -f
|
||||
reboot --force
|
||||
fi
|
||||
|
||||
if [ "$wipe_action" = "poweroff" ]; then
|
||||
poweroff -f
|
||||
poweroff --force
|
||||
fi
|
||||
|
||||
if [ "$wipe_action" = "halt" ]; then
|
||||
halt -f
|
||||
halt --force
|
||||
fi
|
||||
|
||||
if [ "$wipe_action" = "error" ]; then
|
||||
info "wipe-ram.sh wiperamexit: Choice of shutdown option led to an error. Shutting down..."
|
||||
sleep 5
|
||||
poweroff -f
|
||||
poweroff --force
|
||||
fi
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user