Initial version.
[udpkey] / debian / udpkey.initramfs-hook
CommitLineData
247f344a
MW
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
7case "$1" in
8 prereqs)
9 echo ""
10 exit
11 ;;
12esac
13
14. /usr/share/initramfs-tools/hook-functions
15
16copy_exec /usr/bin/udpkey
17cp -r /etc/udpkey $DESTDIR/etc/
18dd if=/dev/random of=$DESTDIR/etc/udpkey/seed bs=1 count=32