Patch for Gentoo Baselayout (tested with 1.11.14-r5)
for overwriting the swap space on halting the system
rc_swap_erase.patch
halt.sh_swap_erase.patch
It was integrated into portage. You just had to set RC_SWAP_ERASE="yes" in /etc/conf.d/rc but it was removed again. :(
Installation:
wget http://ge.mine.nu/rc_swap_erase.patch
wget http://ge.mine.nu/halt.sh_swap_erase.patch
patch /etc/init.d/halt.sh < halt.sh_swap_erase.patch
patch /etc/conf.d/rc < rc_swap_erase.patch
Uninstall:
patch -R /etc/init.d/halt.sh < halt.sh_swap_erase.patch
patch -R /etc/conf.d/rc < rc_swap_erase.patch
I hope this will be added to baselayout soon!
Written by Stefan Behte
Contact me, if you have any new ideas, bugs/bugfixes, recommondations or questions!
Please also contact me, if you just like the tool. :)
Stefan dot Behte at gmx dot net
Released under the GPL-v2