summaryrefslogtreecommitdiffstats
path: root/retiolum
diff options
context:
space:
mode:
authorLassulus <lassulus@googlemail.com>2013-01-23 17:37:05 +0100
committerLassulus <lassulus@googlemail.com>2013-01-23 17:37:05 +0100
commit7d1d43e0267ab4ef9998d50a3076ebed5dc107a5 (patch)
tree9a15231d1d74b308fc795adf754cf7c4808866ea /retiolum
parentd8c10ba40b51f4ebd50297dc66c098930ce33691 (diff)
more android fixes
Diffstat (limited to 'retiolum')
-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)"