summaryrefslogtreecommitdiffstats
path: root/modules/retiolum/scripts/autostart/Makefile
diff options
context:
space:
mode:
authortv <tv@also>2011-05-29 14:28:06 +0200
committertv <tv@also>2011-05-29 14:28:06 +0200
commit6ab10542e484d12e1635a016860e27e8167e5185 (patch)
treeba5acc68d05538ee1396f09e9724b05eaf389725 /modules/retiolum/scripts/autostart/Makefile
parent9ea4cbe1e006f703d1367f5aa3229849775b7128 (diff)
parentb7e9b977884f8d4d6149b06e3567f288b920daa6 (diff)
Merge branch 'master' of github.com:krebscode/painload
Diffstat (limited to 'modules/retiolum/scripts/autostart/Makefile')
-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"
+
+