summaryrefslogtreecommitdiffstats
path: root/ship/src
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2014-03-09 22:32:48 +0100
committermakefu <github@syntax-fehler.de>2014-03-09 22:32:48 +0100
commit0970f673456cf8bef932aef048bb89f6178eb104 (patch)
tree6e0151b3b614a6569d68db7f1256567809457eda /ship/src
parentd352ce6c3d6d8f7d4588dbf51ea479f2af89a7b2 (diff)
ship:implement ncdc configuration
Diffstat (limited to 'ship/src')
-rw-r--r--ship/src/filehooker_configure_ncdc15
-rw-r--r--ship/src/filehooker_configure_netshare6
2 files changed, 21 insertions, 0 deletions
diff --git a/ship/src/filehooker_configure_ncdc b/ship/src/filehooker_configure_ncdc
new file mode 100644
index 00000000..c980ebf2
--- /dev/null
+++ b/ship/src/filehooker_configure_ncdc
@@ -0,0 +1,15 @@
+#!/bin/sh
+#@info
+#@strict
+#@include filehooker
+
+dc_hub="adcs://elch.nsupdate.info:2781"
+rnd=`hexdump -n 2 -e '/2 "%u"' /dev/urandom`
+nick="filehooker_$rnd"
+
+
+ncdc_install
+ncdc_autostart
+
+ncdc_configure_nick "$nick"
+ncdc_configure_hub "$dc_hub"
diff --git a/ship/src/filehooker_configure_netshare b/ship/src/filehooker_configure_netshare
new file mode 100644
index 00000000..ffd53e08
--- /dev/null
+++ b/ship/src/filehooker_configure_netshare
@@ -0,0 +1,6 @@
+#!/bin/sh
+#@info
+#@strict
+#@include filehooker
+
+ncdc_configure_netshare "${1?provide share folder}"