startup scripts with wifi startup with linux fedora core

im looking to have my wireless card active when i boot my laptop

if i start my laptop i have to at a terminal type the following to get my laptop going

iwconfig wlan0 essid "linksys"
dhclient wlan0

then im online and working.
LVL 1
aot2002Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

AndyAelbrechtCommented:
make a new file 'wifi' in your /etc/init.d directory (chmod 755 it) and edit it:

#!/bin/sh
case "$1" in
  start)
    echo -n "Starting WIFI Network"
    iwconfig wlan0 essid "linksys"
    dhclient wlan0
    echo "."
    ;;
  stop)
    echo -n "Stopping WIFI Network"
    ifdown wlan0
    echo "."
      ;;
  restart)
    echo -n "Restarting WIFI Network"
    ifdown wlan0
    iwconfig wlan0 essid "linksys"
    dhclient wlan0
    echo "."
    ;;
  *)
    echo "Usage: /etc/init.d/wifi {start|stop|restart}"
    exit 1
    ;;
esac

exit 0

then, make a link to this file in the appropriate runlevel directory to get it started (let's put in in runlevel2, this is the first multiuser runleve)
ln -s /etc/init.d/wifi /etc/rc2.d/SS15wifi

this should do.
if you have to restart your wifi for some reason, you can type: /etc/init.d/wifi restart

hope this helps,

cheers,
Andy
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
m1tk4Commented:
check if you have the file

/etc/sysconfig/network-scripts/ifcfg-wlan0

If you don't, create it as follows:

DEVICE=wlan
BOOTPROTO=dhcp
ONBOOT=yes
ESSID=linksys

and try

service network restart.

You might need to add some more parameters to /ifcfg-wlan0 for it to work, you can look them up in /etc/sysconfig/network-scripts/ifup-wireless.

0
aot2002Author Commented:
the problem is i keep having issues with NetworkManager interfering
i either have to pull the card after i set my essid or i have to restart networkmanager service to commit changes ?


#!/bin/sh
case "$1" in
  start)
    echo -n "Starting WIFI Network"
    iwconfig wlan0 essid "circledrive"
    iwconfig wlan0 commit
    dhclient wlan0
    echo "."
    ;;
  stop)
    echo -n "Stopping WIFI Network"
    killall dhclient
    ifconfig wlan0 down
    echo "."
      ;;
  restart)
    echo -n "Restarting WIFI Network"
    ifconfig wlan0 down
    ifconfig wlan0 up
    killall dhclient
    iwconfig wlan0 essid "linksys"
    iwconfig wlan0 commit
    dhclient wlan0
    echo "."
    ;;
  *)
    echo "Usage: /etc/init.d/wifi {start|stop|restart}"
    exit 1
    ;;
esac

exit 0
0
Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

aot2002Author Commented:
ignore the typo for the essid name its really set as linkys
0
Gabriel OrozcoSolution ArchitectCommented:
I do not like such "solutions" for wireless because I have to go thru many access points and only one is not a good idea for me.

So I use wifi radar, which has packages for many distros out there and works pretty well.
here the page: http://wifi-radar.systemimager.org/

forget these scripts. just make sure your adapter kernel module is charged ;-)
0
aot2002Author Commented:
any help here
0
Gabriel OrozcoSolution ArchitectCommented:
what do you need.

did you tried wifi radar?
0
aot2002Author Commented:
yes i did and it loaded the program but something must be interfering i cannot get a connection even though i added my Access point information.
0
Gabriel OrozcoSolution ArchitectCommented:
even with the wep key?

did you left unused the IP Address part so it can use DHCP to collect the ip address?
0
aot2002Author Commented:
yes i had to modify the etc config at

vi /etc/wifi-radar/wifi-radar.conf

and set it to wlan0

but something is not working right with ndiswrapper i have to remove the wifi card and reinsert it to connect properly



Apr 26 23:39:24 localhost dhclient: Listening on LPF/wlan0/00:07:40:79:74:ed
Apr 26 23:39:24 localhost dhclient: Sending on   LPF/wlan0/00:07:40:79:74:ed
Apr 26 23:39:24 localhost dhclient: Sending on   Socket/fallback
Apr 26 23:39:24 localhost dhclient: DHCPDISCOVER on wlan0 to 255.255.255.255 por t 67 interval 6
Apr 26 23:39:25 localhost dhclient: DHCPOFFER from 192.168.99.254
Apr 26 23:39:25 localhost dhclient: DHCPREQUEST on wlan0 to 255.255.255.255 port  67
Apr 26 23:39:25 localhost dhclient: DHCPACK from 192.168.99.254
Apr 26 23:39:25 localhost avahi-daemon[2234]: New relevant interface wlan0.IPv4 for mDNS.
Apr 26 23:39:25 localhost avahi-daemon[2234]: Joining mDNS multicast group on in terface wlan0.IPv4 with address 192.168.99.101.
Apr 26 23:39:25 localhost avahi-daemon[2234]: Registering new address record for  192.168.99.101 on wlan0.
Apr 26 23:39:25 localhost NET[4089]: /sbin/dhclient-script : updated /etc/resolv .conf
Apr 26 23:39:25 localhost dhclient: bound to 192.168.99.101 -- renewal in 10479 seconds.



0
Gabriel OrozcoSolution ArchitectCommented:
I wonder if the key is:
"something is not working right with ndiswrapper i have to remove the wifi card and reinsert it to connect properly"

you are using ndis wrapper.
what model is your wifi card?
0
aot2002Author Commented:
it sits forever at dhclient script
trying and trying to get leased ip

if i while its still trying to get an ip, unplug and replug in the network card it will get an ip.
ive tried many other networks same results..

any ideas
0
Gabriel OrozcoSolution ArchitectCommented:
a bad driver.

replace if possible with a native linux kernel module for your card
0
aot2002Author Commented:
can you recommend a linux card for wifi to prevent this?
0
Gabriel OrozcoSolution ArchitectCommented:
http://www.linuxhardware.org/

there you always be sure there are drivers working with your hardware.

by the way: what chipset have your card? are you sure there is no kernel module for it?
0
aot2002Author Commented:
i havent a clue

how can i find this all out?
0
Gabriel OrozcoSolution ArchitectCommented:
lspci (when your card is inserted)

also the output of dmesg after you inserted the card, in dmesg you should see the name and model of the wifi card when you insert it
0
aot2002Author Commented:
lspci
00:00.0 Host bridge: Silicon Integrated Systems [SiS] 650/M650 Host (rev 80)
00:01.0 PCI bridge: Silicon Integrated Systems [SiS] Virtual PCI-to-PCI bridge (AGP)
00:02.0 ISA bridge: Silicon Integrated Systems [SiS] SiS962 [MuTIOL Media IO] (rev 25)
00:02.1 SMBus: Silicon Integrated Systems [SiS] SiS961/2 SMBus Controller
00:02.5 IDE interface: Silicon Integrated Systems [SiS] 5513 [IDE]
00:02.6 Modem: Silicon Integrated Systems [SiS] AC'97 Modem Controller (rev a0)
00:02.7 Multimedia audio controller: Silicon Integrated Systems [SiS] Sound Controller (rev a0)
00:03.0 USB Controller: Silicon Integrated Systems [SiS] USB 1.0 Controller (rev 0f)
00:03.1 USB Controller: Silicon Integrated Systems [SiS] USB 1.0 Controller (rev 0f)
00:03.2 USB Controller: Silicon Integrated Systems [SiS] USB 2.0 Controller
00:04.0 Ethernet controller: Silicon Integrated Systems [SiS] SiS900 PCI Fast Ethernet (rev 91)
00:0a.0 CardBus bridge: Texas Instruments PCI1510 PC card Cardbus Controller
01:00.0 VGA compatible controller: Silicon Integrated Systems [SiS] 65x/M650/740 PCI/AGP VGA Display Adapter
02:00.0 Network controller: Broadcom Corporation BCM4306 802.11b/g Wireless LAN Controller (rev 02)
0
aot2002Author Commented:
dmesg
Linux version 2.6.16-1.2096_FC5 (bhcompile@hs20-bc1-3.build.redhat.com) (gcc version 4.1.0 20060304 (Red Hat 4.1.0-3)) #1 Wed Apr 19 05:14:36 EDT 2006
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009f400 (usable)
 BIOS-e820: 000000000009f400 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000d6000 - 00000000000d8000 (reserved)
 BIOS-e820: 00000000000dc000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000001bdf0000 (usable)
 BIOS-e820: 000000001bdf0000 - 000000001bdff000 (ACPI data)
 BIOS-e820: 000000001bdff000 - 000000001be00000 (ACPI NVS)
 BIOS-e820: 000000001be00000 - 0000000020000000 (reserved)
 BIOS-e820: 00000000fec00000 - 00000000fec10000 (reserved)
 BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved)
 BIOS-e820: 00000000fff80000 - 0000000100000000 (reserved)
0MB HIGHMEM available.
445MB LOWMEM available.
found SMP MP-table at 000f7ad0
Using x86 segment limits to approximate NX protection
On node 0 totalpages: 114160
  DMA zone: 4096 pages, LIFO batch:0
  DMA32 zone: 0 pages, LIFO batch:0
  Normal zone: 110064 pages, LIFO batch:31
  HighMem zone: 0 pages, LIFO batch:0
DMI present.
ACPI: RSDP (v000 PTLTD                                 ) @ 0x000f7b90
ACPI: RSDT (v001 PTLTD    RSDT   0x06040000  LTP 0x00000000) @ 0x1bdfbe41
ACPI: FADT (v001 Dell   Ins 1000 0x06040000 MSTF 0x0100000e) @ 0x1bdfef46
ACPI: MADT (v001 PTLTD           APIC   0x06040000  LTP 0x00000000) @ 0x1bdfefbaACPI: DSDT (v001    WIN Inspiron 0x06040000 MSFT 0x0100000e) @ 0x00000000
ACPI: PM-Timer IO Port: 0x8008
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
Processor #0 15:2 APIC version 20
ACPI: LAPIC_NMI (acpi_id[0x00] high edge lint[0x1])
ACPI: IOAPIC (id[0x01] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 1, version 17, address 0xfec00000, GSI 0-23
ACPI: IRQ9 used by override.
Enabling APIC mode:  Flat.  Using 1 I/O APICs
Using ACPI (MADT) for SMP configuration information
Allocating PCI resources starting at 30000000 (gap: 20000000:dec00000)
Built 1 zonelists
Kernel command line: ro root=/dev/VolGroup00/LogVol00 rhgb quiet
mapped APIC to ffffd000 (fee00000)
mapped IOAPIC to ffffc000 (fec00000)
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Initializing CPU#0
CPU 0 irqstacks, hard=c03d5000 soft=c03d4000
PID hash table entries: 2048 (order: 11, 32768 bytes)
Detected 2191.506 MHz processor.
Using pmtmr for high-res timesource
Console: colour VGA+ 80x25
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 447128k/456640k available (1918k kernel code, 8960k reserved, 774k data, 176k init, 0k highmem)
Checking if this processor honours the WP bit even in supervisor mode... Ok.
Calibrating delay using timer specific routine.. 4392.95 BogoMIPS (lpj=8785915)
Security Framework v1.0.0 initialized
SELinux:  Initializing.
SELinux:  Starting in permissive mode
selinux_register_security:  Registering secondary module capability
Capability LSM initialized as secondary
Mount-cache hash table entries: 512
CPU: After generic identify, caps: bfebfbff 00000000 00000000 00000000 00004400 00000000 00000000
CPU: After vendor identify, caps: bfebfbff 00000000 00000000 00000000 00004400 00000000 00000000
CPU: Trace cache: 12K uops, L1 D cache: 8K
CPU: L2 cache: 256K
CPU: After all inits, caps: bfebf3ff 00000000 00000000 00000080 00004400 00000000 00000000
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU0: Intel P4/Xeon Extended MCE MSRs (12) available
CPU0: Thermal monitoring enabled
CPU: Intel Mobile Intel(R) Celeron(R) CPU 2.20GHz stepping 09
Checking 'hlt' instruction... OK.
ENABLING IO-APIC IRQs
..TIMER: vector=0x31 apic1=0 pin1=0 apic2=-1 pin2=-1
checking if image is initramfs... it is
Freeing initrd memory: 1644k freed
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: PCI BIOS revision 2.10 entry at 0xfd9b6, last bus=1
PCI: Using configuration type 1
ACPI: Subsystem revision 20060127
ACPI: Interpreter enabled
ACPI: Using IOAPIC for interrupt routing
ACPI Error (nsxfeval-0242): Handle is NULL and Pathname is relative [20060127]
ACPI Error (nsxfeval-0242): Handle is NULL and Pathname is relative [20060127]
ACPI Error (nsxfeval-0242): Handle is NULL and Pathname is relative [20060127]
ACPI Error (nsxfeval-0242): Handle is NULL and Pathname is relative [20060127]
ACPI: PCI Root Bridge [PCI0] (0000:00)
PCI: Probing PCI hardware (bus 00)
Uncovering SIS962 that hid as a SIS503 (compatible=1)
Enabling SiS 96x SMBus.
PCI: Ignoring BAR0-3 of IDE controller 0000:00:02.5
Boot video device is 0000:01:00.0
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 *7 10)
ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 7 10) *9
ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 *5 7 10)
ACPI: PCI Interrupt Link [LNKD] (IRQs 3 *4 5 7 10)
ACPI: PCI Interrupt Link [LNKE] (IRQs 3 4 5 7 10) *9
ACPI: PCI Interrupt Link [LNKF] (IRQs 3 4 5 7 *10)
ACPI: PCI Interrupt Link [LNKG] (IRQs 3 4 5 7 10) *0, disabled.
ACPI: PCI Interrupt Link [LNKH] (IRQs *3 4 5 7 10)
ACPI: Embedded Controller [EC0] (gpe 27) interrupt mode.
ACPI: Power Resource [QFAN] (off)
Linux Plug and Play Support v0.97 (c) Adam Belay
pnp: PnP ACPI init
pnp: PnP ACPI: found 8 devices
usbcore: registered new driver usbfs
usbcore: registered new driver hub
PCI: Using ACPI for IRQ routing
PCI: If a device doesn't work, try "pci=routeirq".  If it helps, post a report
pnp: 00:04: ioport range 0x8000-0x808f could not be reserved
pnp: 00:04: ioport range 0x8100-0x811f has been reserved
pnp: 00:04: ioport range 0x4d0-0x4d1 has been reserved
pnp: 00:04: ioport range 0xfe00-0xfe00 has been reserved
PCI: Ignore bogus resource 6 [0:0] of 0000:01:00.0
PCI: Bridge: 0000:00:01.0
  IO window: 9000-9fff
  MEM window: e4300000-e43fffff
  PREFETCH window: e8000000-efffffff
PCI: Bus 2, cardbus bridge: 0000:00:0a.0
  IO window: 00001c00-00001cff
  IO window: 00002000-000020ff
  PREFETCH window: 30000000-31ffffff
  MEM window: 32000000-33ffffff
ACPI: PCI Interrupt 0000:00:0a.0[A] -> GSI 17 (level, low) -> IRQ 16
apm: BIOS version 1.2 Flags 0x03 (Driver version 1.16ac)
apm: overridden by ACPI.
audit: initializing netlink socket (disabled)
audit(1146513579.336:1): initialized
Total HugeTLB memory allocated, 0
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
SELinux:  Registering netfilter hooks
Initializing Cryptographic API
ksign: Installing public key data
Loading keyring
- Added public key CAC5D2FEFF6E03E
- User ID: Red Hat, Inc. (Kernel Module GPG key)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
ACPI: Fan [FAN] (off)
ACPI: CPU0 (power states: C1[C1] C2[C2] C3[C3])
ACPI: Processor [CPU0] (supports 8 throttling states)
ACPI: Thermal Zone [THRM] (33 C)
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
Real Time Clock Driver v1.12ac
Linux agpgart interface v0.101 (c) Dave Jones
agpgart: Detected SiS 650 chipset
agpgart: unable to determine aperture size.
agpgart: agp_backend_initialize() failed.
agpgart-sis: probe of 0000:00:00.0 failed with error -22
PNP: PS/2 Controller [PNP0303:KBC,PNP0f13:PS2M] at 0x60,0x64 irq 1,12
serio: i8042 AUX port at 0x60,0x64 irq 12
serio: i8042 KBD port at 0x60,0x64 irq 1
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled
ACPI: PCI Interrupt 0000:00:02.6[C] -> GSI 18 (level, low) -> IRQ 17
RAMDISK driver initialized: 16 RAM disks of 16384K size 1024 blocksize
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
SIS5513: IDE controller at PCI slot 0000:00:02.5
ACPI: PCI Interrupt 0000:00:02.5[A] -> GSI 16 (level, low) -> IRQ 18
SIS5513: chipset revision 0
SIS5513: not 100% native mode: will probe irqs later
SIS5513: SiS 962/963 MuTIOL IDE UDMA133 controller
    ide0: BM-DMA at 0x2800-0x2807, BIOS settings: hda:DMA, hdb:pio
    ide1: BM-DMA at 0x2808-0x280f, BIOS settings: hdc:DMA, hdd:pio
Probing IDE interface ide0...
hda: ST9408114A, ATA DISK drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
Probing IDE interface ide1...
hdc: QSI CD-RW/DVD-ROM SBW242C, ATAPI CD/DVD-ROM drive
ide1 at 0x170-0x177,0x376 on irq 15
hda: max request size: 512KiB
hda: 78140160 sectors (40007 MB) w/8192KiB Cache, CHS=16383/255/63, UDMA(100)
hda: cache flushes supported
 hda: hda1 hda2 hda3
hdc: ATAPI 24X DVD-ROM CD-R/RW drive, 2048kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.20
ide-floppy driver 0.99.newide
ACPI: PCI Interrupt 0000:00:0a.0[A] -> GSI 17 (level, low) -> IRQ 16
Yenta: CardBus bridge found at 0000:00:0a.0 [1028:0195]
Yenta: Enabling burst memory read transactions
Yenta: Using CSCINT to route CSC interrupts to PCI
Yenta: Routing CardBus interrupts to PCI
Yenta TI: socket 0000:00:0a.0, mfunc 0x012c1222, devctl 0x66
Yenta: ISA IRQ mask 0x0cf8, PCI irq 16
Socket status: 30000020
usbcore: registered new driver libusual
usbcore: registered new driver hiddev
usbcore: registered new driver usbhid
drivers/usb/input/hid-core.c: v2.6:USB HID core driver
mice: PS/2 mouse device common for all mice
md: md driver 0.90.3 MAX_MD_DEVS=256, MD_SB_DISKS=27
md: bitmap version 4.39
NET: Registered protocol family 2
IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
TCP established hash table entries: 16384 (order: 6, 262144 bytes)
TCP bind hash table entries: 16384 (order: 6, 327680 bytes)
TCP: Hash tables configured (established 16384 bind 16384)
TCP reno registered
TCP bic registered
Initializing IPsec netlink socket
NET: Registered protocol family 1
NET: Registered protocol family 17
Using IPI Shortcut mode
ACPI wakeup devices:
 LID PCI0
ACPI: (supports S0 S3 S4 S5)
Freeing unused kernel memory: 176k freed
Write protecting the kernel read-only data: 359k
input: AT Translated Set 2 keyboard as /class/input/input0
input: PS/2 Mouse as /class/input/input1
input: AlpsPS/2 ALPS GlidePoint as /class/input/input2
device-mapper: 4.5.0-ioctl (2005-10-04) initialised: dm-devel@redhat.com
pccard: CardBus card inserted into slot 0
kjournald starting.  Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
SELinux:  Disabled at runtime.
SELinux:  Unregistering netfilter hooks
i2c-sis96x version 1.0.0
sis96x_smbus 0000:00:02.1: SiS96x SMBus base address: 0x8100
sis900.c: v1.08.09 Sep. 19 2005
ACPI: PCI Interrupt 0000:00:04.0[A] -> GSI 19 (level, low) -> IRQ 19
0000:00:04.0: Realtek RTL8201 PHY transceiver found at address 1.
0000:00:04.0: Using transceiver found at address 1 as default
eth0: SiS 900 PCI Fast Ethernet at 0x1800, IRQ 19, 00:11:43:44:94:58.
ndiswrapper version 1.15 loaded (preempt=no,smp=no)
ndiswrapper: driver bcmwl5a (Broadcom,02/17/2004, 3.40.65.0) loaded
PCI: Enabling device 0000:02:00.0 (0000 -> 0002)
ACPI: PCI Interrupt 0000:02:00.0[A] -> GSI 17 (level, low) -> IRQ 16
PCI: Setting latency timer of device 0000:02:00.0 to 64
ndiswrapper: using irq 16
ACPI: PCI Interrupt 0000:00:02.7[C] -> GSI 18 (level, low) -> IRQ 17
ohci_hcd: 2005 April 22 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI)
wlan0: vendor: ''
wlan0: ndiswrapper ethernet device 00:07:40:79:74:ed using driver bcmwl5a, 14E4:4320.5.conf
wlan0: encryption modes supported: WEP; TKIP with WPA; AES/CCMP with WPA
cs: IO port probe 0x100-0x3af: excluding 0x200-0x20f
cs: IO port probe 0x3e0-0x4ff: excluding 0x480-0x48f
cs: IO port probe 0x820-0x8ff: clean.
cs: IO port probe 0xc00-0xcf7: clean.
cs: IO port probe 0xa00-0xaff: clean.
intel8x0_measure_ac97_clock: measured 55431 usecs
intel8x0: clocking to 48000
ACPI: PCI Interrupt 0000:00:02.6[C] -> GSI 18 (level, low) -> IRQ 17
ACPI: PCI Interrupt 0000:00:03.2[D] -> GSI 23 (level, low) -> IRQ 20
ehci_hcd 0000:00:03.2: EHCI Host Controller
PCI: cache line size of 128 is not supported by device 0000:00:03.2
ehci_hcd 0000:00:03.2: new USB bus registered, assigned bus number 1
ehci_hcd 0000:00:03.2: irq 20, io mem 0xe4002000
ehci_hcd 0000:00:03.2: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 6 ports detected
ACPI: PCI Interrupt 0000:00:03.0[A] -> GSI 20 (level, low) -> IRQ 21
ohci_hcd 0000:00:03.0: OHCI Host Controller
ohci_hcd 0000:00:03.0: new USB bus registered, assigned bus number 2
ohci_hcd 0000:00:03.0: irq 21, io mem 0xe4000000
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 3 ports detected
ACPI: PCI Interrupt 0000:00:03.1[B] -> GSI 21 (level, low) -> IRQ 22
ohci_hcd 0000:00:03.1: OHCI Host Controller
ohci_hcd 0000:00:03.1: new USB bus registered, assigned bus number 3
ohci_hcd 0000:00:03.1: irq 22, io mem 0xe4001000
usb usb3: configuration #1 chosen from 1 choice
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 3 ports detected
Non-volatile memory driver v1.2
floppy0: no floppy controllers found
lp: driver loaded but no devices found
ACPI: AC Adapter [ACAD] (off-line)
ACPI: Battery Slot [BAT1] (battery present)
ACPI: Power Button (FF) [PWRF]
ACPI: Lid Switch [LID]
ACPI: Power Button (CM) [PWB]
ibm_acpi: ec object not found
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
EXT3 FS on dm-0, internal journal
kjournald starting.  Commit interval 5 seconds
EXT3 FS on hda1, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting.  Commit interval 5 seconds
EXT3 FS on hda2, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
Adding 458744k swap on /dev/VolGroup00/LogVol01.  Priority:-1 extents:1 across:458744k
eth0: Media Link Off
NET: Registered protocol family 10
lo: Disabled Privacy Extensions
ADDRCONF(NETDEV_UP): eth0: link is not ready
IPv6 over IPv4 tunneling driver
Bluetooth: Core ver 2.8
NET: Registered protocol family 31
Bluetooth: HCI device and connection manager initialized
Bluetooth: HCI socket layer initialized
Bluetooth: L2CAP ver 2.8
Bluetooth: L2CAP socket layer initialized
Bluetooth: HIDP (Human Interface Emulation) ver 1.1
NET: Registered protocol family 23
IrCOMM protocol (Dag Brattli)
CSLIP: code copyright 1989 Regents of the University of California
PPP generic driver version 2.4.2
wlan0: no IPv6 routers present
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory
NFSD: unable to find recovery directory /var/lib/nfs/v4recovery
NFSD: starting 90-second grace period
pccard: card ejected from slot 0
ndiswrapper: device wlan0 removed
pccard: CardBus card inserted into slot 0
ndiswrapper: driver bcmwl5a (Broadcom,02/17/2004, 3.40.65.0) loaded
PCI: Enabling device 0000:02:00.0 (0000 -> 0002)
ACPI: PCI Interrupt 0000:02:00.0[A] -> GSI 17 (level, low) -> IRQ 16
PCI: Setting latency timer of device 0000:02:00.0 to 64
ndiswrapper: using irq 16
wlan0: vendor: ''
wlan0: ndiswrapper ethernet device 00:07:40:79:74:ed using driver bcmwl5a, 14E4:4320.5.conf
wlan0: encryption modes supported: WEP; TKIP with WPA; AES/CCMP with WPA
0
Gabriel OrozcoSolution ArchitectCommented:
This is your card (from lspci output):
02:00.0 Network controller: Broadcom Corporation BCM4306 802.11b/g Wireless LAN Controller (rev 02)

I surfed a little and found this card have linux drivers but in alpha state since manufacturer has yet to publish specifications for the card. sorry but you should still use ndiswrapper.

now re-reading your question, you are able to connect if you do some command line steps.
also from your dmesg log, I see you have Fedora Core 5. so this next page should help you with all steps (You have already done most of them, so keep an eye at the end where it says how to configure your wifi card startup)
http://www.phoronix.com/?page=news_item&px=Mzc3

there it says :
cat /etc/sysconfig/network-scripts/ifcfg-wlan0

DEVICE=wlan0
BOOTPROTO=dhcp
ONBOOT=yes
TYPE=Wireless
NETMASK=
DHCP_HOSTNAME=
IPADDR=
DOMAIN=
HWADDR=
ESSID=phoronix
CHANNEL=1
MODE=Auto
RATE=Auto
USERCTL=no
IPV6INIT=no
PEERDNS=yes

you should edit ESSID and CHANNEL.
but you still can add more (the WEP part) like in this other configuration:
auto wlan0
iface wlan0 inet static
wireless_essid Panoptic
wireless_mode ad-hoc
wireless_channel 10
address 10.0.0.1
netmask 255.255.255.0
broadcast 10.0.0.255
up dhcpd -q -cf /etc/dhcpd-wlan0.conf -pf /var/run/dhcpd-wlan0.pid -lf /var/lib/dhcp/dhcpd-wlan0.leases wlan0
down kill `cat /var/run/dhcpd-wlan0.pid`

I think you can take from both to configure your card at startup.

Still think with wifi radar you should be able to configure all, but you need to configure it to use your interfase and be sure it works scanning your near access points.

Hope this help
0
aot2002Author Commented:
wifi-radar works though i hate having to connect when at home every time i boot up my laptop too bad wifi couldnt be setup with a startup script
0
Gabriel OrozcoSolution ArchitectCommented:
its good to know that wifi radar works

plsease see my last post, there should be a /etc/sysconfig/network-scripts/ifcfg-wlan0

in your system. just add the essid and make it to start
ONBOOT=yes
0
aot2002Author Commented:
it is set to this but doesn't work on boot
i still have to go into wifi-radar and connect then while removing card and reinserting hit connect again.
0
Gabriel OrozcoSolution ArchitectCommented:
it can be a problem where your intefase do not get an ip because you still do not have all the modules working (if you check your dmesg log it is a possibility)

this project can help if lauched at the end of /etc/init.d/rc.local:

http://0pointer.de/lennart/projects/ifplugd/
0
aot2002Author Commented:
sounds interesting

wasnt there a better approach like
Service Network restart
i remember something similar on redhat as service pcmciad restart or such
i cannot seem to find what my current service for my pcmcia is called though?
i was trying to write a script for now to simulate a plug / unplug for my card.
0
GvigorusCommented:
Aot, when you posted this question, did your Wifi work properly (despite the inconvenience of having to configure wlan0 after every time you boot)?

If it did work then, what you could have done (i have it on my FC4)
become root

root@local.host $ dedit /etc/rc.local  --> this opens up a text file that loads every time you boot up.

type in your wifi info and save the file.

iwconfig wlan0 mode Managed
iwconfig wlan0 key restricted 9283749726349 --> if need be
iwconfig wlan0 essid YOUR_NETWORK_NAME
dhclient wlan0

These instructions would load everytime you boot up and if your access point is near, you'll be on automatically...
I guess, if your wifi used to work manually, you could try tracing your steps back, doing what i described here and hopefully it will work for you too. Works for me and i use FC as well!

-=G=-
0
GvigorusCommented:
sorry, to open the rc.local you need to be root and type this (i made a typo)

root@whatever.host$ gedit /etc/rc.local ---> the program that opens the file is "gedit"...
0
GvigorusCommented:
Try undoing all the stuff you were advised to do, i think people have gone way overboard complicating stuff...
0
Gabriel OrozcoSolution ArchitectCommented:
mmhh..

I think Gvigorus has a point.

However, his setup will work with only one access point. If you do not need more, I would follow what he did.

Regards
0
aot2002Author Commented:
ok i'll look into this i just dont prefer having to reinsert the card everytime
0
GvigorusCommented:
Did you use to have to reinsert the card before your posted this question, or is it something you started doing due to some adjustments you made per some of these instructions? Am i understanding you correctly? You wifi card used to work well with your access point and your computer, the only reason you opened this question is you wanted to find out how to make the card load wifi instruction at boot time, right? -=G=-
0
aot2002Author Commented:
no ive always had to reinsert but today i changed my main firewall/vpnrouter
i thought i was having trouble with it but come to find out when i did a Service NetworkManager Stop
it made everything work great?
this networkmanager is interferring with me terrible
i did a chkconfig NetworkManager off

0
aot2002Author Commented:
i havent tried rebooting though
0
aot2002Author Commented:
yup rebooting with networkmanager off works
wifi turns right on....
0
GvigorusCommented:
What exactly is this network manager? Where did you get it from?
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Networking

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.