long options

This commit is contained in:
Patrick Schleizer 2023-01-07 15:34:20 -05:00
parent 1e19c2cbad
commit 20596488be
No known key found for this signature in database
GPG Key ID: CB8D50BB77BB3C48

View File

@ -13,21 +13,21 @@ ram_wipe_check_needshutdown() {
info "wipe-ram.sh wiperamexit: DONE WAITING..." info "wipe-ram.sh wiperamexit: DONE WAITING..."
if [ "$wipe_action" = "reboot" ]; then if [ "$wipe_action" = "reboot" ]; then
reboot -f reboot --force
fi fi
if [ "$wipe_action" = "poweroff" ]; then if [ "$wipe_action" = "poweroff" ]; then
poweroff -f poweroff --force
fi fi
if [ "$wipe_action" = "halt" ]; then if [ "$wipe_action" = "halt" ]; then
halt -f halt --force
fi fi
if [ "$wipe_action" = "error" ]; then if [ "$wipe_action" = "error" ]; then
info "wipe-ram.sh wiperamexit: Choice of shutdown option led to an error. Shutting down..." info "wipe-ram.sh wiperamexit: Choice of shutdown option led to an error. Shutting down..."
sleep 5 sleep 5
poweroff -f poweroff --force
fi fi
} }