diff options
Diffstat (limited to 'sys-apps/irqbalance/files/irqbalance.init.4')
-rw-r--r-- | sys-apps/irqbalance/files/irqbalance.init.4 | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/sys-apps/irqbalance/files/irqbalance.init.4 b/sys-apps/irqbalance/files/irqbalance.init.4 new file mode 100644 index 000000000000..1fb9eeb11f4a --- /dev/null +++ b/sys-apps/irqbalance/files/irqbalance.init.4 @@ -0,0 +1,20 @@ +#!/sbin/openrc-run +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License, v2 or later + +depend() { + need localmount + after bootmisc +} + +command="/usr/sbin/irqbalance" +command_args="${IRQBALANCE_OPTS}" + +start_pre() { + if grep -q MSI /proc/interrupts 2>/dev/null && \ + test -z "$(find /sys/devices -type d -name msi_irqs 2>/dev/null)"; then + eerror "MSI interrupts found in /proc/interrupts but none found in sysfs." + eerror "You need to update your kernel." + return 1 + fi +} |