mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-07-14 01:42:01 +07:00
output
This commit is contained in:
@ -10,7 +10,7 @@ ram_wipe_check_needshutdown() {
|
|||||||
wipe_action=$(getarg wiperamaction)
|
wipe_action=$(getarg wiperamaction)
|
||||||
|
|
||||||
wait $(pgrep sdmem)
|
wait $(pgrep sdmem)
|
||||||
info "DONE WAITING..."
|
info "wipe-ram.sh wiperamexit: DONE WAITING..."
|
||||||
|
|
||||||
if [ "$wipe_action" = "reboot" ]; then
|
if [ "$wipe_action" = "reboot" ]; then
|
||||||
reboot -f
|
reboot -f
|
||||||
@ -25,7 +25,7 @@ ram_wipe_check_needshutdown() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$wipe_action" = "error" ]; then
|
if [ "$wipe_action" = "error" ]; then
|
||||||
info "Choice of shutdown option led to an error. Shutting down..."
|
info "wipe-ram.sh wiperamexit: Choice of shutdown option led to an error. Shutting down..."
|
||||||
sleep 5
|
sleep 5
|
||||||
poweroff -f
|
poweroff -f
|
||||||
fi
|
fi
|
||||||
|
@ -9,16 +9,16 @@ ram_wipe_action() {
|
|||||||
kernel_wiperam_exit=$(getarg wiperamexit)
|
kernel_wiperam_exit=$(getarg wiperamexit)
|
||||||
|
|
||||||
if [ "$kernel_wiperam_exit" = "no" ]; then
|
if [ "$kernel_wiperam_exit" = "no" ]; then
|
||||||
info "Skip, because wiperamexit=no kernel parameter detected, OK."
|
info "wipe-ram.sh wiperamexit: Skip, because wiperamexit=no kernel parameter detected, OK."
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$kernel_wiperam_exit" != "yes" ]; then
|
if [ "$kernel_wiperam_exit" != "yes" ]; then
|
||||||
info "Skip, because wiperamexit parameter is unset."
|
info "wipe-ram.sh wiperamexit: Skip, because wiperamexit parameter is unset."
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
info "wiperamexit=yes, therefore running second RAM wipe..."
|
info "wipe-ram.sh wiperamexit: wiperamexit=yes, therefore running second RAM wipe..."
|
||||||
|
|
||||||
sdmem -l -l -v
|
sdmem -l -l -v
|
||||||
}
|
}
|
||||||
|
@ -73,7 +73,7 @@ dmsetup_actual_output: '$dmsetup_actual_output'"
|
|||||||
sleep 5
|
sleep 5
|
||||||
fi
|
fi
|
||||||
|
|
||||||
kexec -e && info "kexec -e succeeded" || warn "kexec -e failed"
|
kexec -e && info "wipe-ram.sh: kexec -e succeeded" || warn "wipe-ram.sh: kexec -e failed"
|
||||||
}
|
}
|
||||||
|
|
||||||
ram_wipe
|
ram_wipe
|
||||||
|
Reference in New Issue
Block a user