aboutsummaryrefslogtreecommitdiff
path: root/package/rpi-userland
diff options
context:
space:
mode:
authorGravatar Alex Suykov <alex.suykov@gmail.com>2015-05-23 13:07:07 +0300
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-07-14 15:53:15 +0200
commita126ed3122cd9ad6dc655181d6f58e99020a7817 (patch)
treef94fffc9b5e93009a0bd5fae4d42d63c00416672 /package/rpi-userland
parent7ee5eb933d9d148d31598adafc41cf7fd4c76c9a (diff)
downloadbuildroot-a126ed3122cd9ad6dc655181d6f58e99020a7817.tar.gz
buildroot-a126ed3122cd9ad6dc655181d6f58e99020a7817.tar.bz2
rpi-userland: systemd support
[Thomas: use relative path for the symbolic link.] Signed-off-by: Alex Suykov <alex.suykov@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/rpi-userland')
-rw-r--r--package/rpi-userland/rpi-userland.mk7
-rw-r--r--package/rpi-userland/vcfiled.service8
2 files changed, 15 insertions, 0 deletions
diff --git a/package/rpi-userland/rpi-userland.mk b/package/rpi-userland/rpi-userland.mk
index 1a1c9c6fac..e2eadb2850 100644
--- a/package/rpi-userland/rpi-userland.mk
+++ b/package/rpi-userland/rpi-userland.mk
@@ -19,6 +19,13 @@ define RPI_USERLAND_INSTALL_INIT_SYSV
$(INSTALL) -m 0755 -D package/rpi-userland/S94vcfiled \
$(TARGET_DIR)/etc/init.d/S94vcfiled
endef
+define RPI_USERLAND_INSTALL_INIT_SYSTEMD
+ $(INSTALL) -D -m 644 package/rpi-userland/vcfiled.service \
+ $(TARGET_DIR)/usr/lib/systemd/system/vcfiled.service
+ mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
+ ln -sf ../../../../usr/lib/systemd/system/vcfiled.service \
+ $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/vcfiled.service
+endef
endif
define RPI_USERLAND_POST_TARGET_CLEANUP
diff --git a/package/rpi-userland/vcfiled.service b/package/rpi-userland/vcfiled.service
new file mode 100644
index 0000000000..2b8f1dccff
--- /dev/null
+++ b/package/rpi-userland/vcfiled.service
@@ -0,0 +1,8 @@
+[Unit]
+Description=VideoCore file server daemon
+
+[Service]
+ExecStart=/usr/sbin/vcfiled --foreground
+
+[Install]
+WantedBy=multi-user.target