summaryrefslogtreecommitdiffstats
path: root/modules/retiolum/scripts/autostart
diff options
context:
space:
mode:
Diffstat (limited to 'modules/retiolum/scripts/autostart')
-rw-r--r--modules/retiolum/scripts/autostart/Makefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/modules/retiolum/scripts/autostart/Makefile b/modules/retiolum/scripts/autostart/Makefile
index 7ca589e1..aba6bd33 100644
--- a/modules/retiolum/scripts/autostart/Makefile
+++ b/modules/retiolum/scripts/autostart/Makefile
@@ -1,8 +1,14 @@
INIT_FOLDER=/etc/init.d
.phony: all
-all:
+debian:
#TODO change the tinc file before writing
- cp tinc $(INIT_FOLDER)/tinc
- chmod +x $(INIT_FOLDER)/tinc
+ cp tinc /etc/init.d/tinc
+ chmod +x /etc/init.d
echo "retiolum" > /etc/tinc/nets.boot
update-rc.d tinc defaults
+arch:
+ @cp tinc /etc/rc.d
+ @chmod +x /etc/rc.d/tinc
+ @echo "add tinc to DAEMONS in /etc/rc.conf"
+
+