mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-07-15 02:10:36 +07:00
refactoring
This commit is contained in:
@ -15,14 +15,10 @@ ram_wipe_check_needshutdown() {
|
|||||||
if [ "$wipe_action" = "reboot" ]; then
|
if [ "$wipe_action" = "reboot" ]; then
|
||||||
info "wipe-ram.sh wiperamexit: reboot..."
|
info "wipe-ram.sh wiperamexit: reboot..."
|
||||||
reboot --force
|
reboot --force
|
||||||
fi
|
elif [ "$wipe_action" = "poweroff" ]; then
|
||||||
|
|
||||||
if [ "$wipe_action" = "poweroff" ]; then
|
|
||||||
info "wipe-ram.sh wiperamexit: poweroff..."
|
info "wipe-ram.sh wiperamexit: poweroff..."
|
||||||
poweroff --force
|
poweroff --force
|
||||||
fi
|
elif [ "$wipe_action" = "halt" ]; then
|
||||||
|
|
||||||
if [ "$wipe_action" = "halt" ]; then
|
|
||||||
info "wipe-ram.sh wiperamexit: halt..."
|
info "wipe-ram.sh wiperamexit: halt..."
|
||||||
halt --force
|
halt --force
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user