PDA

View Full Version : Asus WL-138g on boot?


Joe_Coleman
2007-07-12, 07:10 AM CDT
Hi,
I've configured my wireless card with NDISwrapper. However, my fedora 7 still won't recognize it in the Network Configuration tool (System>administration>network).

To start my wireless card i have to do the following:

[root@localhost ~]# ifconfig wlan0 up
[root@localhost ~]# iwconfig wlan0
wlan0 IEEE 802.11b ESSID:off/any
Mode:Managed Channel:0 Access Point: Not-Associated
Bit Rate=54 Mb/s Sensitivity=-200 dBm
RTS thr=2346 B Fragment thr=2346 B
Encryption key:off
Power Management:off
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

[root@localhost ~]# iwconfig wlan0 ESSID linksys
[root@localhost ~]# dhclient
Internet Systems Consortium DHCP Client V3.0.5-RedHat
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
/sbin/dhclient-script: configuration for wlan0 not found. Continuing with defaults.
/etc/sysconfig/network-scripts/network-functions: line 78: wlan0: No such file or directory
Listening on LPF/wlan0/00:13:d4:17:01:8a
Sending on LPF/wlan0/00:13:d4:17:01:8a
Listening on LPF/eth0/00:17:31:31:34:d4
Sending on LPF/eth0/00:17:31:31:34:d4
Sending on Socket/fallback
DHCPREQUEST on wlan0 to 255.255.255.255 port 67
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
DHCPACK from 192.168.1.1
/sbin/dhclient-script: configuration for wlan0 not found. Continuing with defaults.
/etc/sysconfig/network-scripts/network-functions: line 78: wlan0: No such file or directory
bound to 192.168.1.64 -- renewal in 32838 seconds.
[root@localhost ~]#

How can i tell Fedora to do this on startup. I have a previous install of driverloader that i can't get rid of properly either (for a different card). Which maybe causing problems on startup.

Thanks.

Joe_Coleman
2007-07-12, 11:22 AM CDT
bump

Any help on creating cusotm boot scripts would be great. Or even whether they exist!
thanks.

michaeleekk
2007-07-13, 04:27 AM CDT
Maybe you can put all the commands into a file.
Like, "wireless" and edit the file with Text Editor:

ifconfig wlan0 up
iwconfig wlan0
iwconfig wlan0 ESSID linksys
dhclient

Then, put this file into /etc/rc.d/init.d/

Well, I haven't test it yet. Maybe, you can have a try.
It will probably do the things on booting.

Joe_Coleman
2007-07-13, 05:41 AM CDT
I made a simple shell script - coincidentally, named the same, unfortunately when i run that, i have to be logged into root. Thanks for this help. I'll give it a try.

Joe_Coleman
2007-07-13, 05:58 AM CDT
Ok, os i put that file into the /etc/rc.d/init.d/ section.
It looked like this:
#!/bin/bash
ifconfig wlan0 up
iwconfig wlan0 ESSID linksys
dhclient

It does exactly as intended when i run it logged in as root. Basically, i want it to run on boot. Just to clarify, the reason i'm not doing this in Network manager is even after using NDISwrapper, the Fedora 7 Network Administration program won't recognise the card.

Thanks