summaryrefslogtreecommitdiffstats
path: root/boot
diff options
context:
space:
mode:
authoreuer <root@euer.krebsco.de>2012-12-20 02:38:25 +0100
committereuer <root@euer.krebsco.de>2012-12-20 02:38:25 +0100
commit2e3888b44c2d8f7f5638d9824fd7f40fbeffe784 (patch)
tree49aea36b4c763dd48ff43d2074059c9967b686d2 /boot
parent2b6183b8a4826503851ec0802384a5bc0c1beb07 (diff)
tinc_setup/bootstrap.sh -> /boot/painload.sh
Diffstat (limited to 'boot')
-rw-r--r--boot/painload.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/boot/painload.sh b/boot/painload.sh
new file mode 100644
index 00000000..32919e7d
--- /dev/null
+++ b/boot/painload.sh
@@ -0,0 +1,11 @@
+if [ ! `id -u` -eq "0" ]
+then
+ echo "not root, trying sudo"
+ exec sudo "$0" "$@"
+fi
+
+mkdir -p /etc/tinc/retiolum/
+git clone git://github.com/miefda/retiolum.git /etc/tinc/retiolum/hosts
+cd /etc/tinc/retiolum/hosts/.scripts
+
+echo "use the build script of your choice from /etc/tinc/retiolum/hosts/.scripts"