mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-06-07 18:52:42 -04:00
refactoring
This commit is contained in:
parent
166a6863a1
commit
d8bf40f7a2
1 changed files with 2 additions and 6 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue