~bladernr/checkbox/860651_redo

« back to all changes in this revision

Viewing changes to scripts/connect_wireless

  • Committer: Brendan Donegan
  • Date: 2011-09-28 10:06:39 UTC
  • mfrom: (1074.1.1 trunk)
  • Revision ID: brendan.donegan@canonical.com-20110928100639-b18shixuy3kbwtnm
Merged Ara's fix to the connect_wireless script for dealing with SSIDs with spaces.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
if [ $? -eq 0 ]
8
8
then
9
9
    ap=$(echo $active_connection | awk -F\' '{print $2}')
10
 
    conn=$(nmcli -f NAME con list | grep $ap)
 
10
    conn=$(nmcli -f NAME con list | grep "$ap")
11
11
else
12
12
    conn=$(nmcli -f NAME,TYPE con list | grep wireless | head -n 1 | awk '{print $1}')
13
13
fi