summaryrefslogtreecommitdiffstats
path: root/filehooker
diff options
context:
space:
mode:
Diffstat (limited to 'filehooker')
-rw-r--r--filehooker/root-image/krebs/lib/filehooker2
1 files changed, 1 insertions, 1 deletions
diff --git a/filehooker/root-image/krebs/lib/filehooker b/filehooker/root-image/krebs/lib/filehooker
index 90d887bd..71db201a 100644
--- a/filehooker/root-image/krebs/lib/filehooker
+++ b/filehooker/root-image/krebs/lib/filehooker
@@ -27,8 +27,8 @@ ncdc_configure_nick(){
}
ncdc_configure_hub(){
rnd=`hexdump -n 2 -e '/2 "%u"' /dev/urandom`
- hubname="hub_$rnd"
hub=${1?adcs://localhost:2781}
+ hubname="${2:-hub_$rnd}"
info "configuring DC Hub: $hub, activating autconnect"
info "setting active as true"
(echo "/open ${hubname} ${hub}" ;