corrected some wifi connection mistakes 75/29575/2 accepted/tizen/3.0.2014.q3/common/20141030.121549 accepted/tizen/common/20141030.121557 submit/tizen_3.0.2014.q3_common/20141030.095756 submit/tizen_common/20141030.095726
authorNicolas Zingilé <nicolas.zingile@open.eurogiciel.org>
Wed, 29 Oct 2014 16:37:53 +0000 (17:37 +0100)
committerNicolas Zingilé <nicolas.zingile@open.eurogiciel.org>
Thu, 30 Oct 2014 09:53:29 +0000 (10:53 +0100)
Change-Id: I8127a418248e1a0e81c8dbd8002dee03224e39f5
Signed-off-by: Nicolas Zingilé <nicolas.zingile@open.eurogiciel.org>
scripts/system-installer
scripts/wifi-util

index 01d46c9eedde668d2b734eb7fc4fece47ea150a7..db90e3d6cefeab5ac28bbc977aefb1dad43e2825 100755 (executable)
@@ -6,7 +6,7 @@
 # License: GPLv2
 # Authors: Thibault Guittet <thibault.guittet@open.eurogiciel.org>
 #          Nicolas Zingilé <nicolas.zingile@open.eurogiciel.org>
-#          Stéphane Desneux <stephane.desneux@open.euurogiciel.org>
+#          Stéphane Desneux <stephane.desneux@open.eurogiciel.org>
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License, version 2,
@@ -41,7 +41,7 @@ bmaptool_failure=""
 # util executables paths
 utilspath=/usr/lib/system-installer
 url_util=$utilspath/url-util
-wifi_util_util=$utilspath/wifi-util
+wifi_util=$utilspath/wifi-util
 kbd_util=$utilspath/keyboard-util
 disk_util=$utilspath/disk-util
 
@@ -88,11 +88,8 @@ function test_connection {
        echo "Checking for internet connection, please wait"
     sleep 5
        until curl --connect-timeout 10 -s "http://download.tizen.org/" > /dev/null; do
-               while :; do
-                       $wifi_util && break
-                       [ $? -eq 1 ] && sigint_handler
-               done
-               echo "Checking for internet connection, please wait"
+               $wifi_util && break
+               [ $? -eq 1 ] && sigint_handler
        done
 }
 
index 1f20d200f2184cdd0b615f9ca75eb8d1ca3ea2a5..bb0cf55b059b2e48ac121c5e5fd5f621ee5cceed 100755 (executable)
@@ -14,8 +14,16 @@ passphrase=""
 
 trap "exit 2" SIGINT
 
+while [[ -z $(lsmod | grep "^iwlmvm") ]]
+do
+       sleep 0.5
+       echo -n "."
+done
+
+sleep 2
+
 while [ 1 ]; do
-       $wifi scan > $data_out
+       $wifi scan > $data_out 2> /dev/null
        ap=$(grep "wifi_" "$data_out" | sed "s/^\* /\t/" | sed "s/^\*R/\t/" | sed "s/^\*A/\t/" | awk '{$(NF--)=""; print}' | sed "s/^\(.*\) $/\"\1\"/g")
        rm -f $data_out 2> /dev/null