refactoring

This commit is contained in:
Patrick Schleizer 2023-01-07 15:35:45 -05:00
parent 166a6863a1
commit d8bf40f7a2
No known key found for this signature in database
GPG Key ID: CB8D50BB77BB3C48

View File

@ -15,14 +15,10 @@ ram_wipe_check_needshutdown() {
if [ "$wipe_action" = "reboot" ]; then
info "wipe-ram.sh wiperamexit: reboot..."
reboot --force
fi
if [ "$wipe_action" = "poweroff" ]; then
elif [ "$wipe_action" = "poweroff" ]; then
info "wipe-ram.sh wiperamexit: poweroff..."
poweroff --force
fi
if [ "$wipe_action" = "halt" ]; then
elif [ "$wipe_action" = "halt" ]; then
info "wipe-ram.sh wiperamexit: halt..."
halt --force
fi