summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/LinHES-config
diff options
context:
space:
mode:
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____")