diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-01-22 16:48:54 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-01-22 16:48:54 +0000 |
commit | ce163dcd0944d81d8406c9532b457535efca7a6d (patch) | |
tree | f7deea170544ce69e03c037101b7b5c1277966b4 /app-laptop/tiny-dfr/files | |
parent | 05ee8049e2326946a2cd1720f98384c864f0a804 (diff) |
gentoo auto-resync : 22:01:2024 - 16:48:54
Diffstat (limited to 'app-laptop/tiny-dfr/files')
-rw-r--r-- | app-laptop/tiny-dfr/files/tiny-dfr.initd | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/app-laptop/tiny-dfr/files/tiny-dfr.initd b/app-laptop/tiny-dfr/files/tiny-dfr.initd new file mode 100644 index 000000000000..dd5a0bd2fbed --- /dev/null +++ b/app-laptop/tiny-dfr/files/tiny-dfr.initd @@ -0,0 +1,28 @@ +#!/sbin/openrc-run +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +J293_Z2="/dev/input/by-path/platform-235100000.spi-cs-0-event" +J493_Z2="/dev/input/by-path/platform-23510c000.spi-cs-0-event" + +pidfile=/run/${RC_SVCNAME}.pid +command=/usr/bin/tiny-dfr +command_background=true + +depend() { + need localmount + after modules-load +} + + +# Check for the presence of the touchbar digitiser. +start_pre() { + ebegin "${RC_SVCNAME}: checking for a touchbar" + if [ -e ${J293_Z2} ]; then + eend $? + elif [ -e ${J493_Z2} ]; then + eend $? + else + eend "${RC_SVCNAME}: no touchbar present on this machine" + fi +} |