summaryrefslogtreecommitdiffstats
path: root/retiolum
diff options
context:
space:
mode:
Diffstat (limited to 'retiolum')
-rwxr-xr-xretiolum/scripts/tinc_setup/new_install.sh11
1 files changed, 6 insertions, 5 deletions
diff --git a/retiolum/scripts/tinc_setup/new_install.sh b/retiolum/scripts/tinc_setup/new_install.sh
index aea97e90..1f750fca 100755
--- a/retiolum/scripts/tinc_setup/new_install.sh
+++ b/retiolum/scripts/tinc_setup/new_install.sh
@@ -228,6 +228,12 @@ do
esac
done
+#check for OS
+if [ $OS -eq 0 ]; then
+ echo $OS
+ find_os
+fi
+
#check if everything is installed
if [ $OS -eq 2 ]; then
if ! test -e /data/data/org.poirsouille.tinc_gui/files/tincd; then
@@ -294,11 +300,6 @@ done
#check for free hostname
get_hostname $HOSTN
-#check for OS
-if [ $OS -eq 0 ]; then
- echo $OS
- find_os
-fi
#create the configs
mkdir -p /etc/tinc/$NETNAME