diff options
author | James Meyer <james.meyer@operamail.com> | 2009-06-22 23:01:43 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2009-06-22 23:01:43 (GMT) |
commit | e8a7c4648f76e3ede74d46105db467bedc7f64f2 (patch) | |
tree | 25ab6a01043694a8c82e3fcd25af03ba56f38e69 | |
parent | 9221761866020715c4034db96cf002cac7758a70 (diff) | |
download | linhes_pkgbuild-e8a7c4648f76e3ede74d46105db467bedc7f64f2.zip linhes_pkgbuild-e8a7c4648f76e3ede74d46105db467bedc7f64f2.tar.gz linhes_pkgbuild-e8a7c4648f76e3ede74d46105db467bedc7f64f2.tar.bz2 |
linhes-config: don't error out on remotes that do not have a lircrc
-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) |