blob: 7a85c79e1107e7679ff7c505004365a9948a8e2f (
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
32
33
34
35
36
37
|
# 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/cached.kmap.gz
fi
# for new console-setup
if [ -f /etc/console-setup/cached_UTF-8_del.kmap.gz ]; then
mkdir -p $DESTDIR/etc/console-setup
cp -ra /etc/console-setup/cached_UTF-8_del.kmap.gz $DESTDIR/etc/console-setup/cached.kmap.gz
fi
fi
|