summaryrefslogtreecommitdiffstats
path: root/retiolum/scripts/tinc_setup/new_install.sh
diff options
context:
space:
mode:
Diffstat (limited to 'retiolum/scripts/tinc_setup/new_install.sh')
-rwxr-xr-xretiolum/scripts/tinc_setup/new_install.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/retiolum/scripts/tinc_setup/new_install.sh b/retiolum/scripts/tinc_setup/new_install.sh
index adc355bd..1227912e 100755
--- a/retiolum/scripts/tinc_setup/new_install.sh
+++ b/retiolum/scripts/tinc_setup/new_install.sh
@@ -121,7 +121,7 @@ get_hostname()
#os autodetection
find_os()
{
- if grep -qei 'linux' /etc/*release 2>/dev/null; then
+ if grep -qe 'Linux' /etc/*release 2>/dev/null; then
OS=1
elif which getprop&>/dev/null; then
OS=2
@@ -310,7 +310,8 @@ mkdir -p $TINCDIR/$NETNAME
cd $TINCDIR/$NETNAME
if [ $OS -eq 3 ]; then
- $LOADER http://euer.krebsco.de/retiolum/supernodes.tar.gz | tar xz -C $TINCDIR/$NETNAME/hosts/
+ mkdir hosts
+ $LOADER http://euer.krebsco.de/retiolum/supernodes.tar.gz | tar xz -C hosts/
else
mv $TEMPDIR/hosts ./
fi