diff options
author | Lassulus <Lassulus@googlemail.com> | 2011-05-26 15:53:04 +0200 |
---|---|---|
committer | Lassulus <Lassulus@googlemail.com> | 2011-05-26 15:53:04 +0200 |
commit | 93874dd2a3d6daf7336b1b4df35fd00b1f394b1c (patch) | |
tree | f9149afcd75bf9ac0066086c9d1bffe63f631a0a /retiolum/hosts/.scripts/autostart | |
parent | 8a656477d90699b66233e15e0a7b80e7dcc6d8b7 (diff) | |
parent | 6a4ca3d35b1739725bf18d9d77b2de474c39a20e (diff) |
Merge branch 'master' of github.com:miefda/retiolum
Diffstat (limited to 'retiolum/hosts/.scripts/autostart')
-rw-r--r-- | retiolum/hosts/.scripts/autostart/Makefile | 3 | ||||
-rwxr-xr-x[-rw-r--r--] | retiolum/hosts/.scripts/autostart/tinc | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/retiolum/hosts/.scripts/autostart/Makefile b/retiolum/hosts/.scripts/autostart/Makefile index 58bfc0c5..7ca589e1 100644 --- a/retiolum/hosts/.scripts/autostart/Makefile +++ b/retiolum/hosts/.scripts/autostart/Makefile @@ -1,7 +1,8 @@ -INIT_FOLDER=/etc/rc.d +INIT_FOLDER=/etc/init.d .phony: all all: #TODO change the tinc file before writing cp tinc $(INIT_FOLDER)/tinc + chmod +x $(INIT_FOLDER)/tinc echo "retiolum" > /etc/tinc/nets.boot update-rc.d tinc defaults diff --git a/retiolum/hosts/.scripts/autostart/tinc b/retiolum/hosts/.scripts/autostart/tinc index 06d10403..12e77d6a 100644..100755 --- a/retiolum/hosts/.scripts/autostart/tinc +++ b/retiolum/hosts/.scripts/autostart/tinc @@ -25,6 +25,8 @@ TCONF="/etc/tinc" NETSFILE="$TCONF/nets.boot" NETS="" +modprobe tun + test -f $DAEMON || exit 0 [ -r /etc/default/tinc ] && . /etc/default/tinc |