diff options
| -rwxr-xr-x | abs/core-testing/LinHES-config/mv_ir.py | 21 | 
1 files changed, 12 insertions, 9 deletions
| diff --git a/abs/core-testing/LinHES-config/mv_ir.py b/abs/core-testing/LinHES-config/mv_ir.py index b8e9741..5734642 100755 --- a/abs/core-testing/LinHES-config/mv_ir.py +++ b/abs/core-testing/LinHES-config/mv_ir.py @@ -31,17 +31,20 @@ def setup_lirc_links(mythhome):              mv_common.runcmd(cmd)              pass -    if not os.path.exists(mythhome+"/.mythtv/lircrc"): -        logging.debug("    Creating symlink for myth lircrc") -        os.symlink("/etc/lircrc",mythhome+"/.mythtv/lircrc") -    else: -        logging.debug("    %s/lircrc already present",mythhome) +    if os.path.exists("/etc/lircrc"): +        if not os.path.exists(mythhome+"/.mythtv/lircrc"): +            logging.debug("    Creating symlink for myth lircrc") +            os.symlink("/etc/lircrc",mythhome+"/.mythtv/lircrc") +        else: +            logging.debug("    %s/lircrc already present",mythhome) -    if not os.path.exists(mythhome+"/.lircrc"): -        logging.debug("    Creating symlink for lircrc") -        os.symlink("/etc/lircrc",mythhome+"/.lircrc") +        if not os.path.exists(mythhome+"/.lircrc"): +            logging.debug("    Creating symlink for lircrc") +            os.symlink("/etc/lircrc",mythhome+"/.lircrc") +        else: +            logging.debug("    %s/.lircrc already present",mythhome)      else: -        logging.debug("    %s/.lircrc already present",mythhome) +        logging.debug("    /etc/lircrc does not exisit, can not link it")  def scrub_modules(filename,module):      logging.debug("    scrubbing %s from %s",module,filename) | 
