chiark / gitweb /
33be1c4375e4c8d1ac5d37652fd42ba2ea634cc3
[udpkey] / debian / udpkey.initramfs-hook
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 dd if=/dev/random of=$DESTDIR/etc/udpkey/seed bs=1 count=32