#! /bin/sh ### ### This file is an initramfs hook script: it copies stuff to the initramfs ### as required by the example udpkey.keyscript. It should be copied to ### /etc/initramfs-tools/hooks. case "$1" in prereqs) echo "" exit ;; esac . /usr/share/initramfs-tools/hook-functions copy_exec /usr/bin/udpkey cp -r /etc/udpkey $DESTDIR/etc/ (umask 077 && dd if=/dev/random of=$DESTDIR/etc/udpkey/seed bs=1 count=32)