Clightd: add runit service

This commit is contained in:
Andrew J. Hesford 2020-04-09 17:27:52 -04:00 committed by Jürgen Buchmüller
parent a37f4b4325
commit bb93b90459
3 changed files with 9 additions and 1 deletions

View file

@ -0,0 +1,3 @@
#!/bin/sh
exec /usr/bin/vlogger -t Clightd

View file

@ -0,0 +1,4 @@
#!/bin/sh
sv check dbus >/dev/null || exit 1
exec /usr/lib/clightd/clightd 2>&1

View file

@ -1,7 +1,7 @@
# Template file for 'Clightd'
pkgname=Clightd
version=4.0
revision=2
revision=3
build_style=cmake
cmake_builddir=build
configure_args="-DENABLE_DDC=1 -DENABLE_GAMMA=1 -DENABLE_DPMS=1 -DENABLE_SCREEN=1"
@ -17,4 +17,5 @@ checksum=b3b2c83d4deb3ebc75ee965d6640009794eec61160a20772932643a9864fb7ba
post_install() {
vinstall Scripts/i2c_clightd.conf 644 /usr/lib/modules-load.d/
vsv Clightd
}