diff options
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 + |