diff options
Diffstat (limited to 'app-laptop/i8kutils/files')
-rw-r--r-- | app-laptop/i8kutils/files/i8kmon.init | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/app-laptop/i8kutils/files/i8kmon.init b/app-laptop/i8kutils/files/i8kmon.init new file mode 100644 index 000000000000..ed41a2a0a553 --- /dev/null +++ b/app-laptop/i8kutils/files/i8kmon.init @@ -0,0 +1,19 @@ +#!/sbin/openrc-run +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +depend() { + after modules +} + +command="/usr/bin/i8kmon" +command_args="--nouserconfig" +command_background=true +pidfile="/run/${RC_SVCNAME}.pid" + +start_pre() { + if [ ! -e /proc/i8k ]; then + eerror "The dell-smm-hwmon (i8k) driver is not loaded or installed" + return 1 + fi +} |