Commit | Line | Data |
---|---|---|
1 | #! /bin/sh | |
2 | ### | |
3 | ### This file is an initramfs hook script: it copies stuff to the initramfs | |
4 | ### as required by the example udpkey.keyscript. It should be copied to | |
5 | ### /etc/initramfs-tools/hooks. | |
6 | ||
7 | case "$1" in | |
8 | prereqs) | |
9 | echo "" | |
10 | exit | |
11 | ;; | |
12 | esac | |
13 | ||
14 | . /usr/share/initramfs-tools/hook-functions | |
15 | ||
16 | copy_exec /usr/bin/udpkey | |
17 | cp -r /etc/udpkey $DESTDIR/etc/ | |
18 | ||
19 | (umask 077 && dd if=/dev/random of=$DESTDIR/etc/udpkey/seed bs=1 count=32) |