diff options
author | Lassulus <lassulus@googlemail.com> | 2013-01-21 22:41:42 +0100 |
---|---|---|
committer | Lassulus <lassulus@googlemail.com> | 2013-01-21 22:41:42 +0100 |
commit | 66979215f1cda8b3af4829b809222161714d430d (patch) | |
tree | 5c9ebe7026cc2e589e0b6eeffe66334e8cad34b8 /retiolum/scripts | |
parent | 83619a1e047518dbb3a13666bd97df196f9a978d (diff) |
fixed device for android
Diffstat (limited to 'retiolum/scripts')
-rwxr-xr-x | retiolum/scripts/tinc_setup/new_install.sh | 6 |
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 |