summaryrefslogtreecommitdiffstats
path: root/retiolum
diff options
context:
space:
mode:
authorLassulus <lassulus@googlemail.com>2013-01-21 22:41:42 +0100
committerLassulus <lassulus@googlemail.com>2013-01-21 22:41:42 +0100
commit66979215f1cda8b3af4829b809222161714d430d (patch)
tree5c9ebe7026cc2e589e0b6eeffe66334e8cad34b8 /retiolum
parent83619a1e047518dbb3a13666bd97df196f9a978d (diff)
fixed device for android
Diffstat (limited to 'retiolum')
-rwxr-xr-xretiolum/scripts/tinc_setup/new_install.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/retiolum/scripts/tinc_setup/new_install.sh b/retiolum/scripts/tinc_setup/new_install.sh
index 4552810d..e67ec1c0 100755
--- a/retiolum/scripts/tinc_setup/new_install.sh
+++ b/retiolum/scripts/tinc_setup/new_install.sh
@@ -165,7 +165,8 @@ if [ $OS -eq 2 ]; then
TINCBIN=/data/data/org.poirsouille.tinc_gui/files/tincd
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 /
+ DEV="/dev/tun"
fi
else
if ! type tincd >/dev/null; then
@@ -175,6 +176,7 @@ else
TINCBIN=tincd
if [ $TINCDIR = 'auto' ]; then TINCDIR="/etc/tinc" ;fi
if [ $TEMPDIR = 'auto' ]; then TEMPDIR="/tmp/tinc-install-fu" ;fi
+ DEV="/dev/net/tun"
fi
fi
@@ -244,7 +246,7 @@ echo "Subnet = $IP6" >> hosts/$HOSTN
cat>tinc.conf<<EOF
Name = $HOSTN
-Device = /dev/net/tun
+Device = $DEV
#newer tinc features
LocalDiscovery = yes