diff options
author | Nicolas Zingilé <nicolas.zingile@open.eurogiciel.org> | 2014-10-29 17:37:53 +0100 |
---|---|---|
committer | Nicolas Zingilé <nicolas.zingile@open.eurogiciel.org> | 2014-10-30 10:53:29 +0100 |
commit | 9b4973013b41e34bc881f0825fe5669535db1692 (patch) | |
tree | 7c381428b31db0defbca9650661841949143109b /scripts/wifi-util | |
parent | 849cf3840a1feae5710b71e74a480ff7e3e3a4fd (diff) | |
download | system-installer-9b4973013b41e34bc881f0825fe5669535db1692.tar.gz system-installer-9b4973013b41e34bc881f0825fe5669535db1692.tar.bz2 system-installer-9b4973013b41e34bc881f0825fe5669535db1692.zip |
corrected some wifi connection mistakessubmit/tizen_common/20141030.095726submit/tizen_3.0.2014.q3_common/20141030.095756accepted/tizen/common/20141030.121557accepted/tizen/3.0.2014.q3/common/20141030.121549
Change-Id: I8127a418248e1a0e81c8dbd8002dee03224e39f5
Signed-off-by: Nicolas Zingilé <nicolas.zingile@open.eurogiciel.org>
Diffstat (limited to 'scripts/wifi-util')
-rwxr-xr-x | scripts/wifi-util | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/scripts/wifi-util b/scripts/wifi-util index 1f20d20..bb0cf55 100755 --- a/scripts/wifi-util +++ b/scripts/wifi-util @@ -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 |