From 668526a3082e9d67a62193cc8577da4940cc1dfe Mon Sep 17 00:00:00 2001 From: Lassulus Date: Fri, 21 Dec 2012 22:19:03 +0100 Subject: fixed OS detections --- retiolum/scripts/tinc_setup/new_install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'retiolum/scripts/tinc_setup/new_install.sh') diff --git a/retiolum/scripts/tinc_setup/new_install.sh b/retiolum/scripts/tinc_setup/new_install.sh index adc355bd..15c4fefb 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 -- cgit v1.2.3 From 62b9254d0a3dc4d3100840ac7b21b6c60d730834 Mon Sep 17 00:00:00 2001 From: Lassulus Date: Fri, 21 Dec 2012 22:21:49 +0100 Subject: fixed bugs on OpenWrt --- retiolum/scripts/tinc_setup/new_install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'retiolum/scripts/tinc_setup/new_install.sh') diff --git a/retiolum/scripts/tinc_setup/new_install.sh b/retiolum/scripts/tinc_setup/new_install.sh index 15c4fefb..1227912e 100755 --- a/retiolum/scripts/tinc_setup/new_install.sh +++ b/retiolum/scripts/tinc_setup/new_install.sh @@ -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 -- cgit v1.2.3