opentechinstitute / commotion-linux-py

DEPRECATED, see commotion-client - Python implementation of core commotion functions for Linux
Other
3 stars 5 forks source link

debian postinst script assumes wireless card is enabled and connected to a network #13

Open dismantl opened 10 years ago

dismantl commented 10 years ago

wpa_cli will error out if the device is not enabled and connected to a wireless network. I would suggest we either:

1) figure out another way to test if ibss_rsn support is available, 2) add a check in the postinst script to see if wpa_cli returns an error, and handle that gracefully, 3) or instead just run the ibss_rsn check when the commotion applet starts up, instead of when it is installed.

dismantl commented 10 years ago

when not connected, wpa_cli returns exit code 255 and message Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory