LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Wireless Networking (https://www.linuxquestions.org/questions/linux-wireless-networking-41/)
-   -   best way to restart a wireless card/daemon? (https://www.linuxquestions.org/questions/linux-wireless-networking-41/best-way-to-restart-a-wireless-card-daemon-352950/)

lefty.crupps 08-13-2005 04:27 PM

best way to restart a wireless card/daemon?
 
Hey ya-
On my Acer Aspire 3001CLi there is a built-in broadcom card. I have it working with ndiswrapper, and when it works it works well. But occasionally, daily at least, it goes down completely. My kWi-Fi Manager doesn't always see it, but the MEPIS OS center always controlls it best. That, however, cannot always seem to start the card, even if it was just working moments ago.

Is there a good command to try? I tried
Code:

ifconfig wlan0 down
if config wlan0 up

and it brings it down just fine. but not back up... in the mean time, M/OS center doesn't change from still being up, and kWi-Fi still sees it as down....

I am looking for a solid way to run this card. Any ideas?

shotwellj 08-13-2005 08:16 PM

I had a similar problem on a Linux install I did for a friend. I found that it was easiest to reload ndiswrapper. The interface needs to be brought down before removing the module.

Code:

ifconfig wlan0 down
rmmod ndiswrapper
modprobe ndiswrapper
ifconfig wlan0 up


Cheers,
Jacob

bejiita 08-16-2005 12:42 PM

heres a small script to help you
 
try this on for size

#!/bin/bash
ifconfig wlan0 down
rmmod ndiswrapper
modprobe ndiswrapper
ifconfig wlan0 up
iwconfig wlan0
dhcpcd wlan0
ifconfig -a
echo "All Done"

lefty.crupps 08-22-2005 01:36 PM

wow i will have to try that. thanks, i'll let you know!


All times are GMT -5. The time now is 10:44 PM.