Quote:
Originally Posted by chainfire
Care to share that script?
|
Sorry
I just upgraded to Ubuntu 8.10 Beta... after using the Broadcom STA driver, it seems that this version can actually deal with ad-hoc mode and automatically switch. Success rate is very low, though.
Here is what I had/have, turned it into an alias. Do "gedit .bashrc" and add this to your list of aliases:
To go INTO ad-hoc mode and connect to WMWifiRouter:
Code:
alias wmwifi='sudo ifconfig eth1 down;sudo /etc/dbus-1/event.d/25NetworkManager stop;sudo iwconfig eth1 mode ad-hoc essid "WMWifiRouter";sudo ifconfig eth1 up;sudo dhclient eth1'
To go back to normal/managed mode:
Code:
alias managed='sudo ifconfig eth1 down;sudo iwconfig eth1 mode managed;sudo ifconfig eth1 up;sudo /etc/dbus-1/event.d/25NetworkManager start;sudo iwlist eth1 scanning'
You'll probably have to change it around a bit. This is for the Broadcom drivers. eth1 is my wireless adapter.
Since 8.10, I get an error with stopping Network Manager; I don't know what the equivalent is here (I've been using 8.10 for literally 10mins). The reason I put that in to start with is because NetworkManager would sometimes try to interfere. You don't need it if you are supplying all the info to connect to WMWifiRouter.