summaryrefslogtreecommitdiffstats
path: root/modules/retiolum/scripts/autostart/Makefile
diff options
context:
space:
mode:
authorroot <root@krebs>2011-05-27 02:15:17 +0200
committerroot <root@krebs>2011-05-27 02:15:17 +0200
commitd2ce18954f19edccf23dddf76c737cd76ca7881e (patch)
tree09d5deb390e5f7955b56b29730de22649b12f298 /modules/retiolum/scripts/autostart/Makefile
parent8fe5eab10765eaf34a6f27802c17dad777863a87 (diff)
prepare .scripts for import into krebscode
Diffstat (limited to 'modules/retiolum/scripts/autostart/Makefile')
-rw-r--r--modules/retiolum/scripts/autostart/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/retiolum/scripts/autostart/Makefile b/modules/retiolum/scripts/autostart/Makefile
new file mode 100644
index 00000000..7ca589e1
--- /dev/null
+++ b/modules/retiolum/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