summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/LinHES-config/mv_ir.py
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2009-06-05 02:04:03 (GMT)
committerJames Meyer <james.meyer@operamail.com>2009-06-05 02:04:03 (GMT)
commit4c3293b79113967cfe86eab4ff6ec974f809e07e (patch)
tree868098ca3bae949f7a02b52b7df0b30017ef5a8e /abs/core-testing/LinHES-config/mv_ir.py
parent70c7883467b9348ce43b2822664bfa19af4d553d (diff)
downloadlinhes_pkgbuild-4c3293b79113967cfe86eab4ff6ec974f809e07e.zip
linhes_pkgbuild-4c3293b79113967cfe86eab4ff6ec974f809e07e.tar.gz
linhes_pkgbuild-4c3293b79113967cfe86eab4ff6ec974f809e07e.tar.bz2
LinHES-config: fix modules.mythvantage typo in ir setup.
Set default value for templates if the variable isn't present to the shell.
Diffstat (limited to 'abs/core-testing/LinHES-config/mv_ir.py')
-rwxr-xr-xabs/core-testing/LinHES-config/mv_ir.py24
1 files changed, 17 insertions, 7 deletions
diff --git a/abs/core-testing/LinHES-config/mv_ir.py b/abs/core-testing/LinHES-config/mv_ir.py
index 6ce549f..efc8a60 100755
--- a/abs/core-testing/LinHES-config/mv_ir.py
+++ b/abs/core-testing/LinHES-config/mv_ir.py
@@ -34,7 +34,7 @@ def scrub_modules(filename,module):
def add_module(filename,module):
logging.debug(" adding %s to %s",module,filename)
- cmd = ''' echo %s >> %s ''' %(module,filename)
+ cmd = ''' echo "%s" >> %s ''' %(module,filename)
mv_common.runcmd(cmd)
def unload_all_lirc():
@@ -98,7 +98,7 @@ def setup_ir_receiver(ReceiverType,TEMPLATES):
logging.info(" Configuring receiver %s", ReceiverType)
if ReceiverType == "Serial":
scrub_modules("/etc/modules.mythvantage","lirc")
- add_module("/etc/modules/.mythvantage","lirc_serial #lirc")
+ add_module("/etc/modules.mythvantage","lirc_serial #lirc")
cmd = "load-modules-mythvantage.sh"
mv_common.runcmd(cmd)
mv_common.remove_service("igdaemon")
@@ -106,7 +106,7 @@ def setup_ir_receiver(ReceiverType,TEMPLATES):
elif ReceiverType == "Usb-imon":
scrub_modules("/etc/modules.mythvantage","lirc")
- add_module("/etc/modules/.mythvantage","lirc_imon #lirc")
+ add_module("/etc/modules.mythvantage","lirc_imon #lirc")
cmd = "load-modules-mythvantage.sh"
mv_common.runcmd(cmd)
mv_common.remove_service("igdaemon")
@@ -114,7 +114,18 @@ def setup_ir_receiver(ReceiverType,TEMPLATES):
elif ReceiverType == "Hauppauge":
scrub_modules("/etc/modules.mythvantage","lirc")
- add_module("/etc/modules/.mythvantage","lirc_i2c #lirc")
+ add_module("/etc/modules.mythvantage","lirc_i2c #lirc")
+ mv_common.cp_and_log(TEMPLATES+"/modules/lirc_i2c.conf" ,
+ "/etc/modprobe.d/lirc_i2c.conf")
+ cmd = "rmmod lirc_i2c"
+ mv_common.runcmd(cmd)
+ cmd = "load-modules-mythvantage.sh"
+ mv_common.runcmd(cmd)
+ mv_common.remove_service("igdaemon")
+ mv_common.remove_service("tatir")
+ elif ReceiverType == "pvr150":
+ scrub_modules("/etc/modules.mythvantage","lirc")
+ add_module("/etc/modules.mythvantage","lirc_i2c #lirc")
mv_common.cp_and_log(TEMPLATES+"/modules/lirc_i2c.conf" ,
"/etc/modprobe.d/lirc_i2c.conf")
cmd = "rmmod lirc_i2c"
@@ -123,7 +134,6 @@ def setup_ir_receiver(ReceiverType,TEMPLATES):
mv_common.runcmd(cmd)
mv_common.remove_service("igdaemon")
mv_common.remove_service("tatir")
-
elif ReceiverType == "iguanaIR-usb":
scrub_modules("/etc/modules.mythvantage","lirc")
mv_common.add_service("igdaemon")
@@ -179,8 +189,8 @@ def setup_blaster_transmiter(HostBlasterType):
elif HostBlasterType == "pvr150":
scrub_modules("/etc/modules.mythvantage", "blaster")
scrub_modules("/etc/modules.mythvantage", "lirc")
- add_module("/etc/modules/.mythvantage", "lirc_pvr150 #blaster")
- add_module("/etc/modules/.mythvantage", "lirc_pvr150 #lirc")
+ add_module("/etc/modules.mythvantage", "lirc_pvr150 #blaster")
+ add_module("/etc/modules.mythvantage", "lirc_pvr150 #lirc")
cmd = "rmmod lirc_i2c"
mv_common.runcmd(cmd)
cmd = "load-modules-mythvantage.sh"