diff options
author | James Meyer <james.meyer@operamail.com> | 2009-08-02 01:05:47 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2009-08-02 01:05:47 (GMT) |
commit | 68f0ad93db42767b17f0c9187354b3f0533e896c (patch) | |
tree | ffecac77b87f7fd757a94e379e8d26ea19a498fd /abs | |
parent | 7b35632e80f168d8c5f2220bf610ee7e24b81270 (diff) | |
download | linhes_pkgbuild-68f0ad93db42767b17f0c9187354b3f0533e896c.zip linhes_pkgbuild-68f0ad93db42767b17f0c9187354b3f0533e896c.tar.gz linhes_pkgbuild-68f0ad93db42767b17f0c9187354b3f0533e896c.tar.bz2 |
linhes-config: add dhcp-request to systemconfig.py
Diffstat (limited to 'abs')
-rwxr-xr-x | abs/core-testing/LinHES-config/PKGBUILD | 2 | ||||
-rwxr-xr-x | abs/core-testing/LinHES-config/systemconfig.py | 12 |
2 files changed, 11 insertions, 3 deletions
diff --git a/abs/core-testing/LinHES-config/PKGBUILD b/abs/core-testing/LinHES-config/PKGBUILD index 75439cc..fdfadf1 100755 --- a/abs/core-testing/LinHES-config/PKGBUILD +++ b/abs/core-testing/LinHES-config/PKGBUILD @@ -1,6 +1,6 @@ pkgname=LinHES-config pkgver=2.0 -pkgrel=65 +pkgrel=68 conflicts=(MythVantage-config MythVantage-config-dev LinHES-config-dev ) pkgdesc="Install and configure your system" depends=(bc libstatgrab mysql-python expect curl dnsutils parted sg3_utils nmbscan system-templates rsync python-parted ddcxinfo python-pexpect python-netifaces LinHES-timezone python-iplib) diff --git a/abs/core-testing/LinHES-config/systemconfig.py b/abs/core-testing/LinHES-config/systemconfig.py index 4418003..b2f8529 100755 --- a/abs/core-testing/LinHES-config/systemconfig.py +++ b/abs/core-testing/LinHES-config/systemconfig.py @@ -50,9 +50,9 @@ def main(argv): global systemconfig systemconfig["MVROOT"]=MVROOT restartlcd = False - cmdmodule={"misc":False , "sleep":False , "hostype":False , "hostypec":False , "advanced":False , "audio":False , "network":False , "advancedX":False , "webuser":False , "restartfe":False , "reloadfe":False , "ddns":False , "screensaver":False , "ir":False , "this_is_install":False , "user":False, "software":False, "plugins":False, "smolt":False, "all":False} + cmdmodule={"misc":False , "sleep":False , "hostype":False , "hostypec":False , "advanced":False , "audio":False , "network":False , "advancedX":False , "webuser":False , "restartfe":False , "reloadfe":False , "ddns":False , "screensaver":False , "ir":False , "this_is_install":False , "user":False, "software":False, "plugins":False, "smolt":False, "all":False, "dhcp_request":False } try: - opts, args = getopt.getopt(argv, 'c:hm:', ["help","modules" ] ) + opts, args = getopt.getopt(argv, 'c:hm:d:', ["help","modules" ] ) except getopt.GetoptError, why: print why usage() @@ -65,6 +65,9 @@ def main(argv): elif opt in ("-m"): for i in arg.split(","): cmdmodule[i]=True + elif opt in ("-d"): + dhcp_dev = arg + if cmdmodule["this_is_install"] or cmdmodule["hostypec"]: systemconfig["hostypec"] = True @@ -185,6 +188,11 @@ def main(argv): mv_common.runcmd(cmd) logging.info("__End of ssh user\n") + if cmdmodule["dhcp_request"]: + cmd = '''dhcpcd -t4 -h' ' -Td %s > /tmp/mvnetwork.dhcpinfo ''' %dhcp_dev + mv_common.runcmd(cmd) + + if __name__ == "__main__": config_file = "mv_config" |