diff options
author | Felix Richter <Felix.Richter@syntax-fehler.de> | 2011-05-27 15:36:20 +0200 |
---|---|---|
committer | Felix Richter <Felix.Richter@syntax-fehler.de> | 2011-05-27 15:36:20 +0200 |
commit | 8852f7362d366c82d2246b968e9aea68381cf91b (patch) | |
tree | 032f84c477cf52c72958ebdd5f1722b480730a4e /modules/retiolum/bin/tinc | |
parent | 58695662f2d4bebe53b2b3dd9974bac44b4b9ead (diff) | |
parent | 77355d28e804ace544f78674866f894bf96a7f89 (diff) |
Merge branch 'master' of github.com:krebscode/painload
Diffstat (limited to 'modules/retiolum/bin/tinc')
-rwxr-xr-x | modules/retiolum/bin/tinc | 18 |
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 + |