main/postmarketos-ui-fbkeyboard: cleanup uinput module load under systemd

Use Requires=modprobe@uinput.service instead of manually invoking
modprobe in ExecStartPre.

Signed-off-by: Ferass El Hafidi <funderscore@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/9333>
This commit is contained in:
Ferass El Hafidi
2026-08-10 11:31:53 +00:00
parent 938b424b9d
commit c86a1dec91
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -2,7 +2,7 @@
# Co-Maintainer: Ferass El Hafidi <funderscore@postmarketos.org> # Co-Maintainer: Ferass El Hafidi <funderscore@postmarketos.org>
maintainer="Alexey Minnekhanov <alexeymin@minlexx.ru>" maintainer="Alexey Minnekhanov <alexeymin@minlexx.ru>"
pkgname=postmarketos-ui-fbkeyboard pkgname=postmarketos-ui-fbkeyboard
pkgver=8 pkgver=9
pkgrel=0 pkgrel=0
pkgdesc="Plain framebuffer console with touchscreen keyboard support" pkgdesc="Plain framebuffer console with touchscreen keyboard support"
url="https://github.com/bakonyiferenc/fbkeyboard" url="https://github.com/bakonyiferenc/fbkeyboard"
@@ -34,5 +34,5 @@ openrc() {
sha512sums=" sha512sums="
bed2c48abfac7cc9bc16fb16cd3ae3a7048121d2867b961458f0d3a9520e16598c8115a7b00808bded64904956aea445fa31a3106c52bab87cfba3420be309b8 fbkeyboard.init bed2c48abfac7cc9bc16fb16cd3ae3a7048121d2867b961458f0d3a9520e16598c8115a7b00808bded64904956aea445fa31a3106c52bab87cfba3420be309b8 fbkeyboard.init
5b70d6087a4448673a4f3f1868ee93f67517edcdf02a6aeec7381b9c91e43cf213a96714388b437497026188276f9c55e759c9fb75e3465422188e9cd00724c9 fbkeyboard.service 04559160fde8a93db72c2fc88890f61cb16732cdf5c31a380ea310d6c5a4c8d0b711c62f78e46f9871528187049618a116eff2c3a4a5555297349a3a5ec0985b fbkeyboard.service
" "
@@ -2,11 +2,11 @@
Description=Framebuffer keyboard UI service Description=Framebuffer keyboard UI service
ConditionPathExists=/dev/tty0 ConditionPathExists=/dev/tty0
After=getty@tty1.service After=getty@tty1.service
Requires=modprobe@uinput.service
[Service] [Service]
Type=exec Type=exec
ExecStart=/bin/sh -c "exec /usr/bin/fbkeyboard -r $(cat /sys/class/graphics/fbcon/rotate) -f /usr/share/fonts/dejavu/DejaVuSans.ttf" ExecStart=/bin/sh -c "exec /usr/bin/fbkeyboard -r $(cat /sys/class/graphics/fbcon/rotate) -f /usr/share/fonts/dejavu/DejaVuSans.ttf"
ExecStartPre=-modprobe uinput
ExecStartPre=-/bin/sh -c "echo 0 > /sys/class/graphics/fbcon/cursor_blink" ExecStartPre=-/bin/sh -c "echo 0 > /sys/class/graphics/fbcon/cursor_blink"
Restart=always Restart=always
RestartSec=1s RestartSec=1s