blob: 3513a515c18f21235998452e44069fd11f8438b5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/bin/sh
if test "${nosudo-false}" != true -a `id -u` != 0; then
echo "we're going sudo..." >&2
exec sudo "$0" "$@"
exit 23 # go to hell
fi
if [ -e /etc/init.d ];then
INIT_FOLDER=/etc/init.d
update-rc.d tinc defaults #TODO debian specific
else
echo "add tinc to DAEMONS in /etc/rc.conf" #TODO archlinux specific
fi
echo "retiolum" > /etc/tinc/nets.boot
cp -a tinc $INITFOLDER
|