mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-07-13 09:19:32 +07:00
refactoring
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user