mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 22:26:31 +00:00
ti-gfx: systemd support
The startup script too complex to embed it completely into the .service file, so it is left as a standalone script. [Thomas: - use relative path for the symbolic link - slightly tweak the service Description string] Signed-off-by: Alex Suykov <alex.suykov@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
c42f6907fa
commit
b4857df721
@ -190,6 +190,16 @@ define TI_GFX_INSTALL_INIT_SYSV
|
|||||||
$(TARGET_DIR)/etc/init.d/S80ti-gfx
|
$(TARGET_DIR)/etc/init.d/S80ti-gfx
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define TI_GFX_INSTALL_INIT_SYSTEMD
|
||||||
|
$(INSTALL) -D -m 755 package/ti-gfx/S80ti-gfx \
|
||||||
|
$(TARGET_DIR)/usr/lib/systemd/scripts/ti-gfx
|
||||||
|
$(INSTALL) -D -m 644 package/ti-gfx/ti-gfx.service \
|
||||||
|
$(TARGET_DIR)/usr/lib/systemd/system/ti-gfx.service
|
||||||
|
mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
|
||||||
|
ln -sf ../../../../usr/lib/systemd/system/ti-gfx.service \
|
||||||
|
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/ti-gfx.service
|
||||||
|
endef
|
||||||
|
|
||||||
define TI_GFX_INSTALL_TARGET_CMDS
|
define TI_GFX_INSTALL_TARGET_CMDS
|
||||||
$(TI_GFX_INSTALL_KM_CMDS)
|
$(TI_GFX_INSTALL_KM_CMDS)
|
||||||
$(TI_GFX_INSTALL_BINS_CMDS)
|
$(TI_GFX_INSTALL_BINS_CMDS)
|
||||||
|
11
package/ti-gfx/ti-gfx.service
Normal file
11
package/ti-gfx/ti-gfx.service
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=TI graphics driver
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
ExecStart=/usr/lib/systemd/scripts/ti-gfx start
|
||||||
|
ExecStop=/usr/lib/systemd/scripts/ti-gfx stop
|
||||||
|
RemainAfterExit=yes
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
Loading…
x
Reference in New Issue
Block a user