pmaports/main/postmarketos-ui-framebufferphone/fbp.init
Miles Alan 5519ec85d3
main/postmarketos-ui-framebufferphone: new aport (MR 2850)
[ci:skip-build] already built successfully in CI
2022-02-07 20:20:43 -08:00

25 lines
529 B
Text

#!/sbin/openrc-run
name="fbp"
command="/usr/bin/fbp"
pidfile="/var/run/fbp.pid"
output_log="/var/log/fbp_stdout.log"
error_log="/var/log/fbp_stderr.log"
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 fbp service or built in."
fi
fi
}