summaryrefslogtreecommitdiffstats
path: root/abs/core/runit-scripts
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/runit-scripts')
-rwxr-xr-xabs/core/runit-scripts/PKGBUILD2
-rwxr-xr-xabs/core/runit-scripts/runit.install6
-rw-r--r--abs/core/runit-scripts/runitscripts/services/irexec/run12
3 files changed, 19 insertions, 1 deletions
diff --git a/abs/core/runit-scripts/PKGBUILD b/abs/core/runit-scripts/PKGBUILD
index 35620e6..9d119a1 100755
--- a/abs/core/runit-scripts/PKGBUILD
+++ b/abs/core/runit-scripts/PKGBUILD
@@ -1,6 +1,6 @@
pkgname=runit-scripts
pkgver=8.3
-pkgrel=2
+pkgrel=3
pkgdesc="collection of startup scripts for runit"
url="http://smarden.org/runit/"
license="BSD"
diff --git a/abs/core/runit-scripts/runit.install b/abs/core/runit-scripts/runit.install
index 4ec6a9f..3cf5036 100755
--- a/abs/core/runit-scripts/runit.install
+++ b/abs/core/runit-scripts/runit.install
@@ -39,6 +39,12 @@ post_upgrade(){
then
rm -r /etc/sv/lircd
fi
+
+ # add irexec
+ if [ -e /service/remotes ] && [ ! -e /service/irexec ]
+ then
+ add_service.sh irexec
+ fi
}
diff --git a/abs/core/runit-scripts/runitscripts/services/irexec/run b/abs/core/runit-scripts/runitscripts/services/irexec/run
new file mode 100644
index 0000000..55653a3
--- /dev/null
+++ b/abs/core/runit-scripts/runitscripts/services/irexec/run
@@ -0,0 +1,12 @@
+#!/bin/sh
+exec 2>&1
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+if [[ -z $(pidof lircd) ]]; then
+ stat_runit "No lircd process, can't start irexec"
+else
+ stat_runit "Starting irexec"
+ exec /usr/bin/irexec /etc/lircrc
+fi