summaryrefslogtreecommitdiffstats
path: root/abs/core/LinHES-config/mv_supplemental.py
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/LinHES-config/mv_supplemental.py')
-rw-r--r--abs/core/LinHES-config/mv_supplemental.py38
1 files changed, 38 insertions, 0 deletions
diff --git a/abs/core/LinHES-config/mv_supplemental.py b/abs/core/LinHES-config/mv_supplemental.py
new file mode 100644
index 0000000..a09cce9
--- /dev/null
+++ b/abs/core/LinHES-config/mv_supplemental.py
@@ -0,0 +1,38 @@
+# -*- coding: utf-8 -*-
+import logging, mv_common
+import os, re
+
+config_file = "mv_config"
+
+def windowmanager(systemconfig):
+ logging.info("____Start of windowmanager setup____")
+ try:
+ windowmanager = systemconfig.get("windowmanager")
+ except:
+ windowmanager = "default"
+ return
+
+ if windowmanager == "" :
+ windowmanager = "default"
+ try:
+ style = systemconfig.get("EnhancedWMStyle")
+ except:
+ style = ""
+
+ if style == "1" and windowmanager != "default" :
+ style = "mythvantage"
+ else:
+ style = ""
+
+ mv_common.pacinstall("alt_wm")
+ cmd = '''/usr/LH/bin/set_windowmanager.sh %s %s ''' %(windowmanager,style)
+ print cmd
+ mv_common.runcmd(cmd)
+ logging.info("__End of windowmanager \n")
+
+
+def supplemental(systemconfig):
+ logging.info("____Start of supplemental config ____")
+ cmd='''/usr/LH/bin/install_supplemental_service.sh'''
+ mv_common.runcmd(cmd)
+ logging.info("__End of supplemental\n") \ No newline at end of file