turn wireless off before suspend



Hi!

I am using wireless with ndiswrapper and networkmanager. However i need to unload ndiswrapper module before suspend. The problem is when i try to unload ndiswrapper with modprobe -r or rmmod the whole system freezes. However if i turn wireless of by right clicking in network manager applet and i click disable wireless, then i can unload the module without freeze. I want to make thing automatic, so i can edit prepare.sh (starts before suspend), but i dont know the command to turn wireless off. Anyone can help me? ifconfig eth1 down or /etc/init.d/networking stop dont works. I am using ubuntu 2.6.22-14-generic

Thx for help in advance.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]