summaryrefslogtreecommitdiffstats
path: root/abs/core/runit-scripts
diff options
context:
space:
mode:
authorMichael Hanson <hansonorders@verizon.net>2011-08-18 22:55:38 (GMT)
committerMichael Hanson <hansonorders@verizon.net>2011-08-18 22:55:38 (GMT)
commit9717976f8559a5f965867438fe4457aa9e8bc113 (patch)
tree5537377ae58b541ab503617f5be9c17148187e78 /abs/core/runit-scripts
parentbf35370b6aa252861f744bff9b8259b545511f9a (diff)
downloadlinhes_pkgbuild-9717976f8559a5f965867438fe4457aa9e8bc113.zip
linhes_pkgbuild-9717976f8559a5f965867438fe4457aa9e8bc113.tar.gz
linhes_pkgbuild-9717976f8559a5f965867438fe4457aa9e8bc113.tar.bz2
runit-scripts: add irqbalance run script/dir
Diffstat (limited to 'abs/core/runit-scripts')
-rwxr-xr-xabs/core/runit-scripts/PKGBUILD2
-rwxr-xr-xabs/core/runit-scripts/runitscripts/services/irqbalance/run16
2 files changed, 17 insertions, 1 deletions
diff --git a/abs/core/runit-scripts/PKGBUILD b/abs/core/runit-scripts/PKGBUILD
index bfc92e9..028a93e 100755
--- a/abs/core/runit-scripts/PKGBUILD
+++ b/abs/core/runit-scripts/PKGBUILD
@@ -1,6 +1,6 @@
pkgname=runit-scripts
pkgver=2.1.1
-pkgrel=27
+pkgrel=28
pkgdesc="collection of startup scripts for runit"
url="http://smarden.org/runit/"
license="BSD"
diff --git a/abs/core/runit-scripts/runitscripts/services/irqbalance/run b/abs/core/runit-scripts/runitscripts/services/irqbalance/run
new file mode 100755
index 0000000..6342868
--- /dev/null
+++ b/abs/core/runit-scripts/runitscripts/services/irqbalance/run
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+# source application-specific settings
+ONESHOT=0
+[ -f /etc/conf.d/irqbalance ] && . /etc/conf.d/irqbalance
+
+if [ "$ONESHOT" -ne 0 ]; then
+ ONESHOT_CMD="--oneshot"
+fi
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+stat_runit "Starting irqbalance"
+
+exec /usr/sbin/irqbalance --debug $ONESHOT_CMD >/dev/null