At the moment I connect on the main PC (Wireless card chip Ralink RT2500) at start up with the following script (provided at least in part from forum members) in /etc/rc.d/rc.local
Code: Select all
echo "Trying to get IP address from DHCP server (60sec timeout)..."
rm /etc/dhcpc/dhcpcd-ra0.pid 2>/dev/null #if left over from last session, causes trouble.
rm /etc/dhcpc/dhcpcd-ra0.cache 2>/dev/null #ditto
rm /etc/dhcpc/dhcpcd-ra0.info 2>/dev/null #ditto
ifconfig ra0 down
ifconfig ra0 up
iwpriv ra0 set AuthMode=WPAPSK
iwpriv ra0 set EncrypType=TKIP
iwconfig ra0 essid "zoelucy"
iwpriv ra0 set WPAPSK="passwordplaintext"
iwconfig ra0 essid "zoelucy"
dhcpcd ra0
Up to now I've have been using PClinuxos on this second machine using a similar script and only get an ip address sometimes.
Many thanks in advance for any help.
Ian