diff options
author | Sören Tempel <soeren+git@soeren-tempel.net> | 2018-02-22 19:50:11 +0100 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2018-02-28 17:52:17 +0000 |
commit | 05ece0ade3577646c1055ed573d0cbb5ff9b06f9 (patch) | |
tree | 51c4a3e7211d8d23e87a9beb2a670597e4713899 /main/busybox-initscripts/loadkmap.initd | |
parent | d0273d93d561bb040de00599ce46f5523cd6fbab (diff) | |
download | aports-05ece0ade3577646c1055ed573d0cbb5ff9b06f9.tar.bz2 aports-05ece0ade3577646c1055ed573d0cbb5ff9b06f9.tar.xz |
main/openrc: move loadkmap service to busybox-initscripts
Diffstat (limited to 'main/busybox-initscripts/loadkmap.initd')
-rw-r--r-- | main/busybox-initscripts/loadkmap.initd | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/main/busybox-initscripts/loadkmap.initd b/main/busybox-initscripts/loadkmap.initd new file mode 100644 index 0000000000..7149dd729e --- /dev/null +++ b/main/busybox-initscripts/loadkmap.initd @@ -0,0 +1,21 @@ +#!/sbin/openrc-run + +description="Applies a keymap for the consoles." + +depend() +{ + provide keymaps + need localmount + keyword -openvz -prefix -uml -vserver -xenu -lxc +} + +start() { + [ -z "$KEYMAP" ] && return + ebegin "Setting keymap" + zcat "$KEYMAP" | loadkmap + eend $? +} + +stop() { + return +} |