mirror of
https://github.com/Kicksecure/security-misc.git
synced 2024-12-28 15:19:27 -05:00
improvements
This commit is contained in:
parent
e5d85d69ef
commit
295811a88f
@ -4,6 +4,7 @@
|
||||
|
||||
# called by dracut
|
||||
check() {
|
||||
require_binaries sleep || return 1
|
||||
require_binaries dmsetup || return 1
|
||||
require_binaries sdmem || return 1
|
||||
return 0
|
||||
@ -16,7 +17,9 @@ depends() {
|
||||
|
||||
# called by dracut
|
||||
install() {
|
||||
inst $(command -v sdmem) /bin/sdmem
|
||||
inst_multiple sleep
|
||||
inst_multiple sdmem
|
||||
inst_multiple dmsetup
|
||||
inst_hook shutdown 40 "$moddir/wipe.sh"
|
||||
}
|
||||
|
||||
|
@ -3,5 +3,5 @@
|
||||
echo "Checking for mounted disks..."
|
||||
dmsetup ls --target crypt
|
||||
echo "WIPE RAM!"
|
||||
/bin/sdmem -f
|
||||
sdmem -f
|
||||
echo "WIPE DONE!"
|
||||
|
Loading…
Reference in New Issue
Block a user