summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/LinHES-config
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2009-06-04 14:57:23 (GMT)
committerJames Meyer <james.meyer@operamail.com>2009-06-04 14:57:23 (GMT)
commitdd2c1f96b8c3e06d26cc8a1f9c3d82ff6a20a39a (patch)
tree3ddf7b69d11652d33b490beaa95ef3e8d114ffc3 /abs/core-testing/LinHES-config
parent7b7126f096fdc8e6da3ca450b25e8488641898d7 (diff)
downloadlinhes_pkgbuild-dd2c1f96b8c3e06d26cc8a1f9c3d82ff6a20a39a.zip
linhes_pkgbuild-dd2c1f96b8c3e06d26cc8a1f9c3d82ff6a20a39a.tar.gz
linhes_pkgbuild-dd2c1f96b8c3e06d26cc8a1f9c3d82ff6a20a39a.tar.bz2
linhes-config: Add better debuging, load the correct module from templates
Diffstat (limited to 'abs/core-testing/LinHES-config')
-rwxr-xr-xabs/core-testing/LinHES-config/mv_ir.py14
1 files changed, 13 insertions, 1 deletions
diff --git a/abs/core-testing/LinHES-config/mv_ir.py b/abs/core-testing/LinHES-config/mv_ir.py
index b3552c5..6c2b2aa 100755
--- a/abs/core-testing/LinHES-config/mv_ir.py
+++ b/abs/core-testing/LinHES-config/mv_ir.py
@@ -189,7 +189,7 @@ def setup_blaster_transmiter(HostBlasterType):
scrub_modules("/etc/modules.mythvantage","blaster")
def setup_lcd(LCDtype, TEMPLATES, Remotetype):
- logging.debug(" Start of setup_lcd")
+ logging.debug("____Start of setup_lcd____")
logging.debug(" LCDType: %s", LCDtype)
logging.debug(" Remotetype: %s", Remotetype)
if LCDtype == "tinker":
@@ -213,8 +213,17 @@ def setup_lcd(LCDtype, TEMPLATES, Remotetype):
logging.debug(" Adding module for LCD")
scrub_modules("/etc/modules.mythvantage", "LCD")
cmd = "cat %s >> /etc/modules.mythvantage" %lcdmodule
+ mv_common.runcmd(cmd)
if Remotetype != "tinker":
+ lcdconf = "%s/LCD/%s/LCDd.conf" %(TEMPLATES,LCDtype)
lcdlirc = "%s/LCD/%s" %(TEMPLATES,LCDtype)
+ mv_common.pacinstall("lcdproc")
+ if os.path.exists(lcdconf):
+ logging.debug(" Copying in lcdconf template file: %s",lcdconf)
+ mv_common.cp_and_log(lcdconf, "/etc/LCDd.conf")
+ else:
+ logging.debug(" %s is not present, will not copy it")
+
if os.path.exists(lcdlirc+"/lircrc"):
logging.debug(" LCD seems to support lirc")
#setup the lirc aspect of the lcd
@@ -238,6 +247,9 @@ def setup_lcd(LCDtype, TEMPLATES, Remotetype):
cmd = "chmod 755 /etc/lircrc"
mv_common.runcmd(cmd)
+ mv_common.add_service("lcdd")
+ logging.debug("__End of setup_lcd")
+
def setup_ir(systemconfig, data_config):
rc = False
logging.info("____Start of IR____")