summaryrefslogtreecommitdiffstats
path: root/modules/retiolum/bin/tinc
diff options
context:
space:
mode:
authorFelix Richter <Felix.Richter@syntax-fehler.de>2011-05-27 15:36:20 +0200
committerFelix Richter <Felix.Richter@syntax-fehler.de>2011-05-27 15:36:20 +0200
commit8852f7362d366c82d2246b968e9aea68381cf91b (patch)
tree032f84c477cf52c72958ebdd5f1722b480730a4e /modules/retiolum/bin/tinc
parent58695662f2d4bebe53b2b3dd9974bac44b4b9ead (diff)
parent77355d28e804ace544f78674866f894bf96a7f89 (diff)
Merge branch 'master' of github.com:krebscode/painload
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
+