From a40296842ba1e5c9678dc9db7ab689f3c6f92080 Mon Sep 17 00:00:00 2001
From: Cecil Hugh Watson <knoppmyth@gmail.com>
Date: Thu, 11 Jun 2009 19:56:06 -0700
Subject: Check for /dev/raw1394 for easier firewire support.

---
 .../runit-scripts/runitscripts/services/mythbackend/run             | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/abs/core-testing/runit-scripts/runitscripts/services/mythbackend/run b/abs/core-testing/runit-scripts/runitscripts/services/mythbackend/run
index 48c68d3..0082c88 100755
--- a/abs/core-testing/runit-scripts/runitscripts/services/mythbackend/run
+++ b/abs/core-testing/runit-scripts/runitscripts/services/mythbackend/run
@@ -27,5 +27,11 @@ mkfifo /tmp/mbefifo >/dev/null 2>/dev/null
 # 			sleep 10
 #
 # 		else
+if [ -e /dev/raw1394 ]
+then
+	exec su mythtv -c "/usr/bin/plugctl -n 0 "oPCR[0].n_p2p_connections=1""
+else
+	echo "No firewire detected"
+fi
 			exec su mythtv -c "/usr/bin/mythbackend --logfile /var/log/mythtv/mythbackend.log"
 # 		fi
-- 
cgit v0.12