summaryrefslogtreecommitdiffstats
path: root/retiolum/scripts
diff options
context:
space:
mode:
authormakefu <root@pigstarter.de>2013-01-24 02:12:53 +0000
committermakefu <root@pigstarter.de>2013-01-24 02:12:53 +0000
commitc939be138f8c51766032c91c11558e5a79fa15c5 (patch)
treeb4af661a09f2fc2427a644811f6b4754f254ee0a /retiolum/scripts
parent0c1883da9a8667595c528130cb9ddc7b0c4a04b2 (diff)
parent14ae58b1f8712c7db98c4b85e18fe632b9dd3a3d (diff)
Merge branch 'master' of https://github.com/krebscode/painload
Diffstat (limited to 'retiolum/scripts')
-rwxr-xr-xretiolum/scripts/tinc_setup/new_install.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/retiolum/scripts/tinc_setup/new_install.sh b/retiolum/scripts/tinc_setup/new_install.sh
index 18096e1f..65611b1c 100755
--- a/retiolum/scripts/tinc_setup/new_install.sh
+++ b/retiolum/scripts/tinc_setup/new_install.sh
@@ -166,6 +166,7 @@ if [ $OS -eq 2 ]; then
if [ $TINCDIR = 'auto' ]; then TINCDIR="/usr/local/etc/tinc" ;fi
if [ $TEMPDIR = 'auto' ]; then TEMPDIR="/storage/sdcard0/tinc-fu" ;fi
mount -o remount,rw /
+ mount -o remount,rw /system
DEV="/dev/tun"
fi
else
@@ -305,6 +306,12 @@ else
yes | $TINCBIN -n $NETNAME -K
fi
+if [ $OS -eq 2 ]; then
+ mkdir /etc/tinc
+ cd /
+ mv $TINCDIR/$NETNAME /etc/tinc/
+ cd /etc/tinc/$NETNAME
+fi
#write to irc-channel
NICK="${HOSTN}_$(head /dev/urandom | tr -dc "0123456789" | head -c3)"