diff options
author | James Meyer <james.meyer@operamail.com> | 2010-03-28 00:54:01 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2010-03-28 00:54:01 (GMT) |
commit | 26444d35e3ce38da0504600900d4775eb7a5970b (patch) | |
tree | eb8fafbd5ffafc980925f3a8e57c117bc8daada0 /abs/core-testing/LinHES-config/mv_ddns.py | |
parent | a2c0883f206547f76d207a8477afc82a07cf0a30 (diff) | |
download | linhes_pkgbuild-26444d35e3ce38da0504600900d4775eb7a5970b.zip linhes_pkgbuild-26444d35e3ce38da0504600900d4775eb7a5970b.tar.gz linhes_pkgbuild-26444d35e3ce38da0504600900d4775eb7a5970b.tar.bz2 |
linhes-systemconfig: add ability to enable or disable modules based on configfile
/etc/mythvantage.cfg is the config file
Changing any value to False will make systemconfig.py skip that module and print what section is being skipped.
closes #663
Diffstat (limited to 'abs/core-testing/LinHES-config/mv_ddns.py')
-rwxr-xr-x | abs/core-testing/LinHES-config/mv_ddns.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/abs/core-testing/LinHES-config/mv_ddns.py b/abs/core-testing/LinHES-config/mv_ddns.py index 7ac7d3a..9695f76 100755 --- a/abs/core-testing/LinHES-config/mv_ddns.py +++ b/abs/core-testing/LinHES-config/mv_ddns.py @@ -5,12 +5,15 @@ import os, re config_file = "mv_config" def setup_ddns(systemconfig): + if mv_common.read_config(mv_common.module_config,"ddns") == False : + logging.info("____Skipping of DDNS, config disabled____") + return logging.info("____Start of setup_ddns____") if systemconfig["DDnsEnable"] == "1": logging.debug(" Enabling DDNS") mv_common.pacinstall("ddclient") - mv_common.cp_and_log("/etc/ddclient/ddclient.conf.dynamic.dyndns.sample", + mv_common.cp_and_log("/etc/ddclient/ddclient.conf.dynamic.dyndns.sample", "/etc/ddclient/ddclient.conf") cmd = ''' sed -i -e "s/your-dynamic-dyndns-login/%s/g" /etc/ddclient/ddclient.conf''' %(systemconfig["DDnslogin"]) mv_common.runcmd(cmd) |