blob: 7880383745ed48a2afc3a9a30c5a38ce2ad1ea93 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# hook addon for keymap
if [ -e $DESTDIR/bin/loadkeys ]; then
if [ -e $DESTDIR/etc/console/boottime.kmap.gz ] || [ -e /etc/console-setup/cached.kmap.gz ] ; then
# don't copy again if exists
_verbose "(13kbmap) No copy keymaps again"
fi
else
# server kbmap
cpifexists /bin/loadkeys /bin
if [ -f /etc/console/boottime.kmap.gz ]; then
mkdir -p $DESTDIR/etc/console
cp -ra /etc/console/boottime.kmap.gz $DESTDIR/etc/console
fi
# for ubuntu
if [ -f /etc/console-setup/boottime.kmap.gz ]; then
mkdir -p $DESTDIR/etc/console
cp -ra /etc/console-setup/boottime.kmap.gz $DESTDIR/etc/console
fi
# for new console-setup
if [ -f /etc/console-setup/cached.kmap.gz ]; then
mkdir -p $DESTDIR/etc/console-setup
cp -ra /etc/console-setup/cached.kmap.gz $DESTDIR/etc/console-setup
fi
fi
|