Or use an udev rule:
Add these linesCode:gksu gedit /etc/udev/rules.d/10-wlan-stick.rules
Replace the red entries with your wireless interface name, and the greenish ones with your internal wifi card module name. Proofread carefully and reboot. This should unload the internal driver when the stick is plugged inCode:ACTION=="add", GOTO="device_check" ACTION=="remove", GOTO="onboard_load" LABEL="device_check" SUBSYSTEM=="net", KERNEL=="wlan1", RUN+="/sbin/modprobe -rf ipw2200" GOTO="rules_end" LABEL="onboard_load" SUBSYSTEM=="net", KERNEL=="wlan*", RUN+="/sbin/modprobe ipw2200" LABEL="rules_end"
Bookmarks