PDA

View Full Version : [ubuntu] Removing Ndiswrapper, compiled from source?



Eax.exe
May 10th, 2008, 10:58 AM
EDIT
Okay, so I managed to get it working :)
But every time I reboot i have to



sudo modprobe ath_pci
sudo modprobe wlan_scan_sta


Any way to avoid this?
I'm using feisty with Fluxbox:)

Hello :)

Some time ago I compiled Ndiswrapper from source via this guide:
http://ubuntuforums.org/showthread.php?t=512828&highlight=ar5007

Now I'd like to use Madwifi instead:
http://www.ubuntugeek.com/atheros-5007eg-with-madwifi-on-i386-platform.html

But how do I remove ndiswrapper when it's compiled from source?

Thanks in advance :D

kevdog
May 10th, 2008, 12:37 PM
If you remove ndiswrapper from /etc/modules and add the ath_pci and wlan_scan_sta to the /etc/modules file then everything will work how you want it. If you want to remove ndiswrapper:

sudo aptitude purge ndiswrapper
sudo rm /etc/modprobe.d/ndiswrapper
sudo sh -c "sed '/^ndiswrapper$/d' /etc/modules > /etc/modules.temp.rm; mv /etc/modules.temp.rm /etc/modules"
sudo rmmod ndiswrapper
sudo /lib/modules/`uname -r`/kernel/ubuntu/misc/ndiswrapper/ndiswrapper.ko
sudo rm -rf /etc/ndiswrapper
sudo rm /usr/sbin/ndiswrapper
sudo rm /sbin/loadndisdriver
sudo rm /lib/modules/`uname -r`/misc/ndiswrapper.ko

Eax.exe
May 10th, 2008, 05:37 PM
If you remove ndiswrapper from /etc/modules and add the ath_pci and wlan_scan_sta to the /etc/modules file then everything will work how you want it. If you want to remove ndiswrapper:

sudo aptitude purge ndiswrapper
sudo rm /etc/modprobe.d/ndiswrapper
sudo sh -c "sed '/^ndiswrapper$/d' /etc/modules > /etc/modules.temp.rm; mv /etc/modules.temp.rm /etc/modules"
sudo rmmod ndiswrapper
sudo /lib/modules/`uname -r`/kernel/ubuntu/misc/ndiswrapper/ndiswrapper.ko
sudo rm -rf /etc/ndiswrapper
sudo rm /usr/sbin/ndiswrapper
sudo rm /sbin/loadndisdriver
sudo rm /lib/modules/`uname -r`/misc/ndiswrapper.ko

Thanks a lot :D