summaryrefslogtreecommitdiffstats
path: root/retiolum/hosts/.scripts/autostart/Makefile
diff options
context:
space:
mode:
authorroot <root@miefda901.localdomain>2011-05-26 15:52:03 +0200
committerroot <root@miefda901.localdomain>2011-05-26 15:52:03 +0200
commit6a4ca3d35b1739725bf18d9d77b2de474c39a20e (patch)
tree2e2cff4c94c046ed3526105ddbec98ce50ce32e8 /retiolum/hosts/.scripts/autostart/Makefile
parent0de673712d76272742754f6c9f01229ce074bf1a (diff)
parentaea8e374caa9ba8cbb1bc3cff39753fbfe0e3605 (diff)
Merge branch 'master' of github.com:miefda/retiolum
Diffstat (limited to 'retiolum/hosts/.scripts/autostart/Makefile')
-rw-r--r--retiolum/hosts/.scripts/autostart/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/retiolum/hosts/.scripts/autostart/Makefile b/retiolum/hosts/.scripts/autostart/Makefile
new file mode 100644
index 00000000..7ca589e1
--- /dev/null
+++ b/retiolum/hosts/.scripts/autostart/Makefile
@@ -0,0 +1,8 @@
+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