diff options
| author | makefu <github@syntax-fehler.de> | 2014-04-02 04:10:21 +0200 |
|---|---|---|
| committer | makefu <github@syntax-fehler.de> | 2014-04-02 04:10:21 +0200 |
| commit | 1d6c14a96984511a9e4bf607f04a92298fca9512 (patch) | |
| tree | bff43e64c382adb5ed0338012ecad6021114af3a /filehooker/root-image/krebs/lib | |
| parent | be52c4f2fa00ff0f0a4049931c7931a44846476a (diff) | |
using collectd and stuff
Diffstat (limited to 'filehooker/root-image/krebs/lib')
| -rw-r--r-- | filehooker/root-image/krebs/lib/filehooker | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/filehooker/root-image/krebs/lib/filehooker b/filehooker/root-image/krebs/lib/filehooker index c51be701..b3bef435 100644 --- a/filehooker/root-image/krebs/lib/filehooker +++ b/filehooker/root-image/krebs/lib/filehooker @@ -33,8 +33,9 @@ ncdc_configure_hub(){ rnd=`hexdump -n 2 -e '/2 "%u"' /dev/urandom` hub=${1?adcs://localhost:2781} hubname="${2:-hub_$rnd}" - info "configuring DC Hub: $hub, activating autconnect" info "setting active as true" + (echo "/set active true") | ncdc_config + info "configuring DC Hub: $hub, activating autconnect" (echo "/open ${hubname} ${hub}" ; echo "/hset autoconnect true") | ncdc_config } @@ -129,7 +130,7 @@ is_mounted(){ share_all_partitions(){ count=0 # all /dev/sdX and all mapped devices - (find /dev -name '[shv]d[a-z][0-9]';find /dev/mapper ! -type d)| while read disk;do + (find /dev -name '[shv]d[a-z][0-9]';find /dev/mapper ! -type d ;find /dev -name 'md[0-9][0-9]*')| while read disk;do size=$(get_disksize $disk 2>/dev/null) if test "$size" -gt "$min_netshare_size" 2>/dev/null ; #&& ! is_mounted "$disk"; |
