From e8a7c4648f76e3ede74d46105db467bedc7f64f2 Mon Sep 17 00:00:00 2001 From: James Meyer Date: Mon, 22 Jun 2009 18:01:43 -0500 Subject: linhes-config: don't error out on remotes that do not have a lircrc --- abs/core-testing/LinHES-config/mv_ir.py | 21 ++++++++++++--------- 1 file 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) -- cgit v0.12