Commit 3222cc9f authored by Florent Revest's avatar Florent Revest

psplash: install a systemd service because the sysv generator is broken

parent d0e0b43d
[Unit]
SourcePath=/etc/init.d/psplash.sh
Description=Lightweight splashscreen
DefaultDependencies=no
Before=sysinit.target shutdown.target
Conflicts=shutdown.target
[Service]
Type=forking
Restart=no
TimeoutSec=5min
IgnoreSIGPIPE=no
KillMode=process
GuessMainPID=no
RemainAfterExit=yes
ExecStart=/etc/init.d/psplash.sh start
ExecStop=/etc/init.d/psplash.sh stop
...@@ -4,6 +4,7 @@ SRC_URI += "file://psplash-colors.h \ ...@@ -4,6 +4,7 @@ SRC_URI += "file://psplash-colors.h \
file://psplash-bar-img.png \ file://psplash-bar-img.png \
file://psplash-config.h \ file://psplash-config.h \
file://0001-Don-t-draw-progress-and-message-bar.patch \ file://0001-Don-t-draw-progress-and-message-bar.patch \
file://psplash.service \
" "
SPLASH_IMAGES = "file://psplash-poky-img.png;outsuffix=default" SPLASH_IMAGES = "file://psplash-poky-img.png;outsuffix=default"
...@@ -15,6 +16,15 @@ do_configure_append () { ...@@ -15,6 +16,15 @@ do_configure_append () {
./make-image-header.sh ./psplash-bar.png BAR ./make-image-header.sh ./psplash-bar.png BAR
} }
do_install_append () {
install -d ${D}/lib/systemd/system/multi-user.target.wants/
cp ../psplash.service ${D}/lib/systemd/system/
ln -s ../psplash.service ${D}/lib/systemd/system/multi-user.target.wants/psplash.service
}
# Erase psplash's pkg_postinst which masks psplash from systemd # Erase psplash's pkg_postinst which masks psplash from systemd
pkg_postinst_${PN} () { pkg_postinst_${PN} () {
} }
FILES_${PN} += "/lib/systemd/system/"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment