Page 1 of 1

How to autoconnect wifi trendnet tew-401pc+ at boot

Posted: Thu 23 Feb 2006, 23:03
by mikey
installed this wifi card on my p3 thinkpad from the live cd. It has a broadcom chipset with bcmwl5a.inf driver for ndiswrapper.
have installed 1.0.8 on to hd and each time I boot I have to run wag with a haphazard result. seems to pick up the card only if before I seat it, i physically remove and reinsert the pc card. then it actually is able to see the network .next, I toggle the dhcp to run and then I'm off to mozilla.
what I would like to know is:
1. is there a better and quicker way to get this wifi connected each boot and
2. is there a way to save the settings truly so that the card connects automatically with each boot as most other systems do so I don't have to use wag each time I boot up
I'm not a wiz on the command line so please be as clear as possible in that regard
a pre-thanks to all

Posted: Thu 23 Feb 2006, 23:16
by Rickrandom
Look at this thread:

http://www.murga.org/%7Epuppy/viewtopic ... highlight=

Let us know how you get on.

re:autoconnect for wifi

Posted: Fri 24 Feb 2006, 23:42
by mikey
#this file called from rc.local0
#you can edit this file
#When firewall is installed, will append lines to this file...
modprobe ndiswrapper
iwconfig wlan0 essid xxxxx
rm /etc/dhcpcd/dhcpcd-wlan0
dhcpcd -t20 -h puppypc -d wlan0

as per your advise, I made these changes to the rc.local file
. it seems that the dhcp is still hanging and does not activate on boot. when I use wag to toggle it on, i get connected pronto.
thanks for your input
mike

Posted: Sat 25 Feb 2006, 02:15
by trapster
I believe your line-

rm /etc/dhcpcd/dhcpcd-wlan0

should read:

rm /etc/dhcpcd/dhcpcd-wlan0.*

check back with the link given earlier, you might require some "sleep" in there as well (?)

re:autoconnect wifi

Posted: Sat 25 Feb 2006, 03:45
by mikey
modprobe ndiswrapper
sleep 5
iwconfig wlan0 essid xxxx
sleep 5
rm /etc/dhcpcd/dhcpcd-wlan0.*
sleep 5
dhcpcd -t20 -h puppypc -d wlan0
well, I made the adjustment that you recommended plus the sleeps but I still haven't gotten the dhcp to connect. during boot up , I noticed that the rm /etc/ dhcpcd/dhcpcd-wlan0.* could not be found. maybe it ois a syntax prob but the wag dhcp toggle gets me going in a jiffy. still would like to find a fully auto way to get this wifi loaded.
thanbks for your help
mike

Posted: Sat 25 Feb 2006, 04:18
by mikey
Dear trapster
I cut and pasted to the rc.local file as specified in rick random's thread and now my wifi boots totally auto.
thanks for your help and his
best to all
mike

Posted: Sat 25 Feb 2006, 08:52
by Rickrandom
As I was advised, you can trim down the sleep values, then reboot, and see if it still works. It will save a few seconds in booting. I started with 5 everywhere just to read the screen to see whether things were working or not.

Posted: Sat 25 Feb 2006, 12:00
by trapster
ah, this is what happens when I cut and paste without looking!

the line:

rm /etc/dhcpcd/dhcpcd-wlan0.*

should point to /etc/dhcpc..........not /etc/dhcpcd

which is probably why it could not be found when you tried it first.

Don't ya just love this forum!!