rfkill is a small tool to query the state of the rfkill switches, buttons and subsystem interfaces.
Release tarballs of iw are available from http://wireless.kernel.org/download/rfkill/.
Alternatively, you can download iw from git: http://git.sipsolutions.net/rfkill.git/, the web interface can also create tarballs for arbitrary revisions.
on your command line and it will print out the commands it supports.
Printing the current rfkill status
Listening to events
Setting/clearing a soft block
to get the rfkill index, then use
rfkill block <index>
rfkill unblock <index>