summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/LinHES-config
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2009-06-15 20:46:32 (GMT)
committerJames Meyer <james.meyer@operamail.com>2009-06-15 20:46:32 (GMT)
commit4e45176422a6ccd0c7447feb53b622283ad64689 (patch)
tree47bd5abb7212055e8d82332b1cb8e615b2ecc4c1 /abs/core-testing/LinHES-config
parente47d97e366a8eae8d5d71ef692b930fcfd953e53 (diff)
downloadlinhes_pkgbuild-4e45176422a6ccd0c7447feb53b622283ad64689.zip
linhes_pkgbuild-4e45176422a6ccd0c7447feb53b622283ad64689.tar.gz
linhes_pkgbuild-4e45176422a6ccd0c7447feb53b622283ad64689.tar.bz2
LinHES-config: hook up rrd_tool to the advanced menu
new mythvantage with rrdtool changed to rrd_stats
Diffstat (limited to 'abs/core-testing/LinHES-config')
-rwxr-xr-xabs/core-testing/LinHES-config/PKGBUILD2
-rwxr-xr-xabs/core-testing/LinHES-config/mv_advanced.py10
2 files changed, 11 insertions, 1 deletions
diff --git a/abs/core-testing/LinHES-config/PKGBUILD b/abs/core-testing/LinHES-config/PKGBUILD
index c000c02..4488cbc 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=13
+pkgrel=14
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)
diff --git a/abs/core-testing/LinHES-config/mv_advanced.py b/abs/core-testing/LinHES-config/mv_advanced.py
index 01351df..d7c65f1 100755
--- a/abs/core-testing/LinHES-config/mv_advanced.py
+++ b/abs/core-testing/LinHES-config/mv_advanced.py
@@ -66,6 +66,14 @@ def setup_splash(Usebootsplash):
cmd = ''' sed -i "s/^default.*1/default 0/g" /boot/grub/menu.lst'''
mv_common.runcmd(cmd)
return
+def setup_rrd(UseRRD):
+ if UseRRD == "1":
+ logging.info(" Enabling rrd_stats")
+ mv_common.pacinstall("rrd_stats")
+ else:
+ logging.info(" Disabling rrd_stats")
+ mv_common.pacremove("rrd_stats")
+
def setup_hobbit(UseHobbit,SystemType,dbhost):
if UseHobbit == "1":
@@ -355,6 +363,8 @@ def setup_advanced(systemconfig,data_config):
setup_hobbit(systemconfig["UseHobbit"],
systemconfig["SystemType"],
systemconfig["dbhost"])
+ if data_config.SYSTEMTYPE == "LinHES":
+ setup_rrd(systemconfig["UseRRD"])
setup_evrouter(systemconfig["UseEvrouter"],
systemconfig["EvrouterConfig"],