31 lines
546 B
Bash
Executable file
31 lines
546 B
Bash
Executable file
#!/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
|
|
|
|
[ ! -x ${ROOTDIR}/sbin/loadkeys -a ! -x ${ROOTDIR}/sbin/dumpkeys ] && exit 0
|
|
|
|
. ${ROOTDIR}/usr/share/initramfs-tools/hook-functions
|
|
|
|
${ROOTDIR}/sbin/dumpkeys > ${DESTDIR}/kmap-tmp
|
|
${ROOTDIR}/sbin/loadkeys -u -b ${DESTDIR}/kmap-tmp > ${DESTDIR}/etc/bkeymap
|
|
rm -f ${DESTDIR}/kmap-tmp
|
|
|
|
exit 0
|