WiCD: How to toggle WiFi on and off?

view full story

http://www.linuxquestions.org – I'm setting up a headless device (has console access only) that has ethernet and wireless connectivity. I'm using wicd to manage the connections. The ethernet port is configured via Wicd to use DHCP. The WiFi can also be managed by wicd to connect to (an) access point(s). However the wireless device will sometimes be used for other things (i.e. hostap), and during this time I'd like wicd to leave the wlan0 device alone, but still handle the ethernet dhcp. It shouldn't even scan or probe any networks. In fact it should leave the wifi completely alone - as if the device doesn't exist. I've goo (HowTos)