summaryrefslogtreecommitdiffstats
path: root/abs/core/LinHES-config/systemconfig.py
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-10-14 19:42:57 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-10-14 19:42:57 (GMT)
commite4840158643b9d3dd848fce7587d788870813438 (patch)
tree8634c05d907f8558bb0b7fc7d50ae0ae9fb4049e /abs/core/LinHES-config/systemconfig.py
parent489742a5f2ec36803e4272d25ba381e21ede5f2d (diff)
downloadlinhes_pkgbuild-e4840158643b9d3dd848fce7587d788870813438.zip
linhes_pkgbuild-e4840158643b9d3dd848fce7587d788870813438.tar.gz
linhes_pkgbuild-e4840158643b9d3dd848fce7587d788870813438.tar.bz2
LinHES-config: added some logic to account for when the hostname changes via the service menu.
- restart func (this will work itself out if left alone) - restart xymon - run mythutils to change hostname - reload systemsettings with new hostname
Diffstat (limited to 'abs/core/LinHES-config/systemconfig.py')
-rwxr-xr-xabs/core/LinHES-config/systemconfig.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/abs/core/LinHES-config/systemconfig.py b/abs/core/LinHES-config/systemconfig.py
index d65a1c6..baaab4f 100755
--- a/abs/core/LinHES-config/systemconfig.py
+++ b/abs/core/LinHES-config/systemconfig.py
@@ -176,6 +176,10 @@ def main(argv):
systemconfig["hostypec"] = True
#cmdmodule["smolt"] = True
+ if cmdmodule["hostypec"] == True :
+ cmdmodule["fileshare"] = True
+ cmdmodule["hostype"] = True
+
systemconfig["mythip"] = mv_network.setup_MYTH_IP(systemconfig)
systemconfig["mythdhcp"] = mv_network.setup_MYTH_DHCP(systemconfig)
systemconfig["mythgw"] = mv_network.setup_MYTH_DHCP(systemconfig)