a minimal shell script to encapsulate a couple useful wifi operations.
using it is easy:
~$ sh wifi.sh <operation> [opts]
e.g. connecting to the ssid mywifi
and password 123456789
~$ sh wifi.sh connect mywifi 123456789
connect <ssid> [password]
disconnect
is_connected
; returnstrue
orfalse
get_ssids
start_hotspot <ssid>
stop_hotspot
network-manager installed:
~$ apt-get install network-manager