Skip to content

Commit

Permalink
long options
Browse files Browse the repository at this point in the history
  • Loading branch information
adrelanos committed Jan 7, 2023
1 parent 1e19c2c commit 2059648
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -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
}

Expand Down

0 comments on commit 2059648

Please sign in to comment.