summaryrefslogtreecommitdiffstats
path: root/modules/retiolum/bin/tinc
diff options
context:
space:
mode:
authortv <tv@also>2011-05-27 15:25:07 +0200
committertv <tv@also>2011-05-27 15:25:07 +0200
commit77355d28e804ace544f78674866f894bf96a7f89 (patch)
tree8a01a2eabd4992260f9d4592fa37f1fa86cccab3 /modules/retiolum/bin/tinc
parenta6563e5a9c554aa5d08c11f645815fb25deb8bcd (diff)
retiolum/bin: (addipv6 => ipv6) + tinc
Diffstat (limited to 'modules/retiolum/bin/tinc')
-rwxr-xr-xmodules/retiolum/bin/tinc18
1 files changed, 18 insertions, 0 deletions
diff --git a/modules/retiolum/bin/tinc b/modules/retiolum/bin/tinc
new file mode 100755
index 00000000..ffa1dbee
--- /dev/null
+++ b/modules/retiolum/bin/tinc
@@ -0,0 +1,18 @@
+#! /bin/sh
+#
+set -euf
+
+init() {
+ f=/tmp/retiolum.GraphDumpFile
+ if ! test -f $f; then
+ touch $f &&
+ chown -v tincd: $f
+ fi
+
+ modprobe -v tun
+}
+
+if init; then
+ exec tincd --user=tincd --net=retiolum "$@"
+fi
+