summaryrefslogtreecommitdiffstats
path: root/retiolum/scripts/tinc_setup/new_install.sh
diff options
context:
space:
mode:
authoreuer <root@euer.krebsco.de>2012-12-22 03:08:01 +0100
committereuer <root@euer.krebsco.de>2012-12-22 03:08:01 +0100
commit056ec241c0fbeedb6fbda9897a9c0042ce0eb739 (patch)
tree0230f2d7d6b7ffdcb4291c84eaffa46b50083fd2 /retiolum/scripts/tinc_setup/new_install.sh
parent5176621efd96a793a5d67fcfc4136cc5301405d2 (diff)
parent164ff3e48946747fef3b61c4f7dbc143693192c1 (diff)
Merge branch 'master' of github.com:krebscode/painload
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