e78098c34f
Alpine has changed location and package name of ttf-dejavu fonts, adjust to new location. Without this, fbkeyboard service crashes with error: unable to load font file: No such file or directory Default font path is hardcoded [1] to "/usr/share/fonts/ttf-dejavu/DejaVuSans.ttf". Luckily there is a CLI switch to change default, use it. [1] https://github.com/bakonyiferenc/fbkeyboard/blob/master/fbkeyboard.c#L37
24 lines
584 B
Text
24 lines
584 B
Text
#!/sbin/openrc-run
|
|
|
|
name="fbkeyboard"
|
|
command="/usr/bin/fbkeyboard"
|
|
command_args="-r $(cat /sys/class/graphics/fbcon/rotate) -f /usr/share/fonts/dejavu/DejaVuSans.ttf"
|
|
pidfile="/var/run/fbkeyboard.pid"
|
|
command_background=true
|
|
|
|
depend()
|
|
{
|
|
after consolefont
|
|
keyword -docker -lxc -openvz -prefix -systemd-nspawn -uml -vserver -xenu
|
|
}
|
|
|
|
start_pre()
|
|
{
|
|
# Setup kernel support for user level drivers (input subsystem)
|
|
if [ ! -e /dev/uinput ]; then
|
|
if ! modprobe -q uinput; then
|
|
eerror "The uinput module needs to be loaded by " \
|
|
"the fbkeyboard service or built in."
|
|
fi
|
|
fi
|
|
}
|