summaryrefslogtreecommitdiffstats
path: root/retiolum/bin/tinc
blob: ffa1dbeec125e5c8a5bc24269d0c87ef604d7458 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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