65-initramfs-scripts 331 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
set -e

echo "Adding memory_wipe to the prereqs of all other init-top initramfs scripts"

(
   cd /usr/share/initramfs-tools/scripts/init-top
   for script in * ; do
      [ "$script" != memory_wipe ] || continue
      sed --regexp-extended -i \
	  -e 's/^(PREREQS?)="(.*)"/\1="memory_wipe \2"/' \
	  "$script"
   done
)