From 798b843d304bf2afa6b7dd2395105c92c26695a5 Mon Sep 17 00:00:00 2001
From: James Meyer <james.meyer@operamail.com>
Date: Sun, 30 Nov 2008 18:25:21 -0600
Subject: mkdir .runtime before starting lircd

---
 abs/core-testing/runit-scripts/PKGBUILD                           | 2 +-
 abs/core-testing/runit-scripts/runitscripts/services/lircd/finish | 2 +-
 abs/core-testing/runit-scripts/runitscripts/services/lircd/run    | 1 +
 3 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/abs/core-testing/runit-scripts/PKGBUILD b/abs/core-testing/runit-scripts/PKGBUILD
index 0a2298a..8a84258 100755
--- a/abs/core-testing/runit-scripts/PKGBUILD
+++ b/abs/core-testing/runit-scripts/PKGBUILD
@@ -1,6 +1,6 @@
 pkgname=runit-scripts
 pkgver=1.8.0
-pkgrel=8
+pkgrel=10
 pkgdesc="collection of startup scripts for runit"
 url="http://smarden.org/runit/"
 license="BSD"
diff --git a/abs/core-testing/runit-scripts/runitscripts/services/lircd/finish b/abs/core-testing/runit-scripts/runitscripts/services/lircd/finish
index bf6cb69..51c33bb 100755
--- a/abs/core-testing/runit-scripts/runitscripts/services/lircd/finish
+++ b/abs/core-testing/runit-scripts/runitscripts/services/lircd/finish
@@ -1,5 +1,5 @@
 #!/bin/bash
-killall -9 lircd
+killall -9 lircd 2>/dev/null 
 rm -f /var/run/lirc*.pid 
 [ -e /etc/sv/lircd/.runtime ] || mkdir -p /etc/sv/lircd/.runtime
 touch /etc/sv/lircd/.runtime/`date +%s`    
diff --git a/abs/core-testing/runit-scripts/runitscripts/services/lircd/run b/abs/core-testing/runit-scripts/runitscripts/services/lircd/run
index 57b1b48..0adfdc1 100755
--- a/abs/core-testing/runit-scripts/runitscripts/services/lircd/run
+++ b/abs/core-testing/runit-scripts/runitscripts/services/lircd/run
@@ -2,6 +2,7 @@
 exec 2>&1
 run_lircd2=false
 . /etc/systemconfig
+[ -e /etc/sv/lircd/.runtime ] || mkdir -p /etc/sv/lircd/.runtime
 
 function dvico_detect {
 
-- 
cgit v0.12

