File: keymap

package info (click to toggle)
initramfs-tools 0.142%2Bdeb12u3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 568 kB
  • sloc: sh: 1,973; makefile: 16
file content (40 lines) | stat: -rwxr-xr-x 687 bytes parent folder | download | duplicates (5)
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
38
39
40
#!/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

if [ ! -x /bin/setupcon ]; then
	echo "setupcon is missing. Please install the 'console-setup' package."
	exit 0
fi

. /usr/share/initramfs-tools/hook-functions

# Tell setupcon to copy/create the files it needs.
setupcon --setup-dir "$DESTDIR"

# Copy additional files that setupcon needs.  We assume they are
# executables.
while read -r file; do
	copy_exec "$file"
done < "$DESTDIR/morefiles"
rm -f "$DESTDIR/morefiles"

exit 0