2009-10-09 03:11:09 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
PREREQ=""
|
|
|
|
|
|
|
|
prereqs()
|
|
|
|
{
|
|
|
|
echo "$PREREQ"
|
|
|
|
}
|
|
|
|
|
|
|
|
case $1 in
|
|
|
|
# get pre-requisites
|
|
|
|
prereqs)
|
|
|
|
prereqs
|
|
|
|
exit 0
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
# Hook to load keymaps into the initramfs if requested by KEYMAP="y"
|
|
|
|
if [ "$KEYMAP" != "y" ] && [ "$KEYMAP" != "Y" ]; then
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
2011-10-17 18:09:15 +02:00
|
|
|
[ ! -x ${ROOTDIR}/sbin/loadkeys -a ! -x ${ROOTDIR}/sbin/dumpkeys ] && exit 0
|
2009-10-09 03:11:09 +02:00
|
|
|
|
2011-10-17 18:09:15 +02:00
|
|
|
. ${ROOTDIR}/usr/share/initramfs-tools/hook-functions
|
2011-05-25 11:20:43 +02:00
|
|
|
|
2011-10-17 18:09:15 +02:00
|
|
|
${ROOTDIR}/sbin/dumpkeys > ${DESTDIR}/kmap-tmp
|
|
|
|
${ROOTDIR}/sbin/loadkeys -u -b ${DESTDIR}/kmap-tmp > ${DESTDIR}/etc/bkeymap
|
2011-10-12 21:22:25 +02:00
|
|
|
rm -f ${DESTDIR}/kmap-tmp
|
2009-10-09 03:11:09 +02:00
|
|
|
|
2011-05-25 11:20:43 +02:00
|
|
|
exit 0
|