From 6bceec1d35495e812dd846cc2ba0b8b9f5555853 Mon Sep 17 00:00:00 2001
From: Cecil Hugh Watson <knoppmyth@gmail.com>
Date: Fri, 20 Feb 2009 02:38:30 -0800
Subject: Changed TatIR config.

---
 abs/core-testing/LinHES-config/PKGBUILD                          | 2 +-
 abs/core-testing/LinHES-config/install_functions.sh              | 9 +++++----
 abs/core-testing/LinHES-config/templates/remotes/receiver_usb.id | 1 -
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/abs/core-testing/LinHES-config/PKGBUILD b/abs/core-testing/LinHES-config/PKGBUILD
index 37aea87..30c5d9a 100755
--- a/abs/core-testing/LinHES-config/PKGBUILD
+++ b/abs/core-testing/LinHES-config/PKGBUILD
@@ -1,6 +1,6 @@
 pkgname=LinHES-config
 pkgver=1.0
-pkgrel=281
+pkgrel=282
 conflicts=(MythVantage-config MythVantage-config-dev LinHES-config-dev )
 pkgdesc="Install and configure your system"
 depends=(bc libstatgrab  mysql-python expect curl dnsutils parted sg3_utils nmbscan )
diff --git a/abs/core-testing/LinHES-config/install_functions.sh b/abs/core-testing/LinHES-config/install_functions.sh
index 2a306b1..ba0ceab 100755
--- a/abs/core-testing/LinHES-config/install_functions.sh
+++ b/abs/core-testing/LinHES-config/install_functions.sh
@@ -67,10 +67,6 @@ function setupremote {
         else
                 /usr/sbin/lircd  -d /dev/lirc0
         fi
-        if [ x$Remotetype = "tatir" ]
-        then
-                /usr/bin/PyroUsb.py
-	fi
         [ -e /root/.mythtv ] ||  mkdir /root/.mythtv 2>/dev/null
         ln -s /etc/lircrc /root/.mythtv/lircrc 2>/dev/null
     else
@@ -119,6 +115,11 @@ if [ $found_remote = 1 ]
 then
     scan_for_hpg_receiver
 fi
+echo "Scanning for TatIR..."
+if lsusb | grep 04d8:0004
+then
+	/usr/bin/PyroUsb.sh
+fi
 }
 
 function rest_of_network () {
diff --git a/abs/core-testing/LinHES-config/templates/remotes/receiver_usb.id b/abs/core-testing/LinHES-config/templates/remotes/receiver_usb.id
index dd78944..71b37d1 100644
--- a/abs/core-testing/LinHES-config/templates/remotes/receiver_usb.id
+++ b/abs/core-testing/LinHES-config/templates/remotes/receiver_usb.id
@@ -31,4 +31,3 @@
 1784:0007|mceusb|  "Topseed HP eHome Infrared Transceiver 1784/0007"
 1784:0008|mceusb|  "Topseed eHome Infrared Transceiver 1784/0008"
 045e:006d|mceusb-old|  "USB Microsoft IR Transceiver Driver 045e/006d"
-04db:0004|tatir|  "Microchip Technology, Inc"
-- 
cgit v0.12

