blob: a70f5ff654a5bb2d186bb34d30963845bf0d450b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
run_hook ()
{
source encrypt2.conf
echo "Waiting 10 seconds for device $cryptkey_device ..."
sleep 10
mkdir encrypt2_device
mount $cryptkey_device encrypt2_device &> /dev/null
cat encrypt2_file.list | while read keyfile; do
dd if=/dev/urandom of="encrypt2_device/$keyfile" \
bs=1024 count=2 &> /dev/null
dd if=/dev/urandom of="encrypt2_device/$keyfile" \
bs=1024 count=2 &> /dev/null
dd if=/dev/urandom of="encrypt2_device/$keyfile" \
bs=1024 count=2 &> /dev/null
done
umount encrypt2_device &> /dev/null
}
|