mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-08-01 02:26:10 -04:00
minor
This commit is contained in:
parent
450ff378b0
commit
2860560edb
5 changed files with 26 additions and 30 deletions
|
@ -46,4 +46,3 @@ install() {
|
|||
installkernel() {
|
||||
return 0
|
||||
}
|
||||
|
||||
|
|
|
@ -15,21 +15,20 @@ ram_wipe_check_needshutdown() {
|
|||
if [ "$wipe_action" = "reboot" ]; then
|
||||
reboot -f
|
||||
fi
|
||||
|
||||
|
||||
if [ "$wipe_action" = "poweroff" ]; then
|
||||
poweroff -f
|
||||
fi
|
||||
|
||||
|
||||
if [ "$wipe_action" = "halt" ]; then
|
||||
halt -f
|
||||
fi
|
||||
|
||||
|
||||
if [ "$wipe_action" = "error" ]; then
|
||||
info "Choice of shutdown option led to an error. Shutting down..."
|
||||
sleep 5
|
||||
poweroff -f
|
||||
info "Choice of shutdown option led to an error. Shutting down..."
|
||||
sleep 5
|
||||
poweroff -f
|
||||
fi
|
||||
}
|
||||
|
||||
ram_wipe_check_needshutdown
|
||||
|
||||
|
|
|
@ -8,21 +8,19 @@ ram_wipe_action() {
|
|||
local kernel_wiperam_exit
|
||||
kernel_wiperam_exit=$(getarg wiperamexit)
|
||||
|
||||
|
||||
if [ "$kernel_wiperam_exit" = "no" ]; then
|
||||
info "INFO: Skip, because wiperamexit=no kernel parameter detected, OK."
|
||||
return 0
|
||||
fi
|
||||
|
||||
|
||||
if [ "$kernel_wiperam_exit" != "yes" ]; then
|
||||
info "INFO: Skip, becuase wiperamexit parameter is not used. "
|
||||
info "INFO: Skip, becuase wiperamexit parameter is not used."
|
||||
return 0
|
||||
fi
|
||||
|
||||
info "INFO: wiperamexit=yes. Running second RAM wipe... "
|
||||
|
||||
info "INFO: wiperamexit=yes. Running second RAM wipe..."
|
||||
|
||||
sdmem -l -l -v
|
||||
}
|
||||
ram_wipe_action
|
||||
|
||||
ram_wipe_action
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue