Merge lp:~brendan-donegan/checkbox/bug861502_reconnect_wireless into lp:checkbox
Proposed by
Brendan Donegan
Status: | Merged |
---|---|
Merged at revision: | 1083 |
Proposed branch: | lp:~brendan-donegan/checkbox/bug861502_reconnect_wireless |
Merge into: | lp:checkbox |
Diff against target: |
43 lines (+3/-7) 3 files modified
debian/changelog (+1/-0) jobs/suspend.txt.in (+2/-2) scripts/reconnect (+0/-5) |
To merge this branch: | bzr merge lp:~brendan-donegan/checkbox/bug861502_reconnect_wireless |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ara Pulido (community) | Approve | ||
Brendan Donegan (community) | Needs Resubmitting | ||
Review via email: mp+77474@code.launchpad.net |
Description of the change
The wireless before/after suspend tests used to save just the name of the interface which was connected before the test ran. This proved sufficient in most cases, but didn't truly reflect the connections that were actually in place before the test. This was a problem in some situations - so this change updates the job command to store the connections using 'nmcli con status' and then restore them using 'nmcli con up'
The reconnect script has also been removed as I felt that the code to do the reconnect was terse enough not to require a separate script.
To post a comment you must log in.
Instead of saving just the SSID name, nmcli saves "Auto <SSID>", so this fix fails for me:
ara@sushirider: ~/curro/ checkbox/ checkbox/ trunk/scripts$ nmcli -t -f NAME con status > $CHECKBOX_ DATA/connection s && ./connect_wireless && ./internet_test --interface=`nmcli dev list | grep -B 1 wireless | grep GENERAL.DEVICE | awk '{print $2}'` && while read CON; do nmcli con up "$CON"; done < $CHECKBOX_ DATA/connection s op/NetworkManag er/Devices/ 0) disconnecting failed: This device is not active p/NetworkManage r/ActiveConnect ion/6
Error: Device 'eth0' (/org/freedeskt
Device state: 30 (disconnected)
Active connection state: activating
Active connection path: /org/freedeskto
state: activated
Connection activated
Internet connection fully established
Unknown parameter: Auto Musireta
Error: id or uuid has to be specified.