mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-08-18 11:27:57 -04:00
added files
This commit is contained in:
parent
929f49f333
commit
a7015f4ddf
6 changed files with 151 additions and 0 deletions
|
@ -0,0 +1,27 @@
|
|||
#!/bin/sh
|
||||
|
||||
## Author: friedy10 friedrichdoku@gmail.com
|
||||
|
||||
|
||||
ram_wipe_check_needshutdown() {
|
||||
local wipe_action
|
||||
wipe_action=$(getarg wiperamaction)
|
||||
|
||||
wait $(pgrep sdmem)
|
||||
info "DONE WAITING..."
|
||||
|
||||
if [ "$wipe_action" = "reboot" ]; then
|
||||
reboot -f
|
||||
fi
|
||||
|
||||
if [ "$wipe_action" = "poweroff" ]; then
|
||||
poweroff -f
|
||||
fi
|
||||
|
||||
if [ "$wipe_action" = "halt" ]; then
|
||||
halt -f
|
||||
fi
|
||||
}
|
||||
|
||||
ram_wipe_check_needshutdown
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue