summaryrefslogtreecommitdiffstats
path: root/retiolum/scripts
diff options
context:
space:
mode:
authorLassulus <lassulus@googlemail.com>2012-12-12 04:11:07 +0100
committerLassulus <lassulus@googlemail.com>2012-12-12 04:11:07 +0100
commit7bea72bbc15bbc0ae20726f928a64953fca547a4 (patch)
tree31ffb646e09481f053afc3cc7eacfad2d289ca12 /retiolum/scripts
parent3e14311b99f0cb6a304314fae02dab8a0bfb9eb6 (diff)
added different directory for android
Diffstat (limited to 'retiolum/scripts')
-rwxr-xr-xretiolum/scripts/tinc_setup/new_install.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/retiolum/scripts/tinc_setup/new_install.sh b/retiolum/scripts/tinc_setup/new_install.sh
index c6a572d2..7a62e13b 100755
--- a/retiolum/scripts/tinc_setup/new_install.sh
+++ b/retiolum/scripts/tinc_setup/new_install.sh
@@ -302,8 +302,13 @@ get_hostname $HOSTN
#create the configs
-mkdir -p /etc/tinc/$NETNAME
-cd /etc/tinc/$NETNAME
+if [ $OS -eq 2 ];then
+ mkdir -p /usr/local/etc/tinc/$NETNAME
+ cd /usr/local/etc/tinc/$NETNAME
+else
+ mkdir -p /etc/tinc/$NETNAME
+ cd /etc/tinc/$NETNAME
+fi
mv $TEMPDIR/hosts ./