After a little modification your solution seams to work, type must also be 
included:
conn=$(nmcli -t -f UUID,TYPE,NAME con list | grep wireless | grep -e "$ap$" | 
awk -F\: '{print $1}')

I'll see if the result shows up on friendly.ubuntu.com soon.

I think this would be a good fix as it's not too uncommon that your
company wireless and VPN have similar names.

** Patch added: "Patch to only look for wireless connection."
   
https://bugs.launchpad.net/ubuntu/+source/checkbox/+bug/877752/+attachment/2561421/+files/connect_wireless.diff

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/877752

Title:
  wireless_before_suspend failed

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/checkbox/+bug/877752/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to