LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 12-29-2004, 06:38 AM   #1
maxwevers
LQ Newbie
 
Registered: Dec 2004
Location: Germany
Distribution: Slackware 10 / Debian unstable
Posts: 3

Rep: Reputation: 0
Lightbulb Adding wireless card to hotplug


Hi,

I can't figure out how to add a device to the hotplug system.
I have a rlt8180 WLAN-Card working with ndiswrapper/wpa_supplicant. Now I want to hotplug it, I read the hotplug documentation but that was not really a help ...
For now I wrote a wlan start|stop script, but hotplug would be much better
Any hints would be appricated

thx
max

Last edited by maxwevers; 12-30-2004 at 09:00 AM.
 
Old 12-30-2004, 08:39 AM   #2
maxwevers
LQ Newbie
 
Registered: Dec 2004
Location: Germany
Distribution: Slackware 10 / Debian unstable
Posts: 3

Original Poster
Rep: Reputation: 0
ok I got somewhat further

I manually added the lspci -n info to /lib/modules/2.4.28/modules.pcimap an added a /etc/hotplug/pci/ndiswrapper script that looks like:

#!/bin/sh

if [ "$ACTION" = "add" ] ; then
/usr/local/bin/wpa_supplicant -Bwdd -D ndiswrapper -i wlan0 -c /etc/wpa_supplicant.conf
/bin/sleep 15
/sbin/dhcpcd -d wlan0
fi
if [ "$ACTION" = "remove" ] ; then
/sbin/dhcpcd -k wlan0
/bin/killall wpa_supplicant
/bin/sleep 5
/sbin/rmmod ndiswrapper
fi


so when I plug the card in, the modul gehts loaded and the card is configured and connected. But when I eject it nothing happends, the modul is still loaded and wpa_supplicant still running.

The other problem is that on every reboot or depmod the re-genrated and thus the ndiswrapper entry is gone ...

If anyone could tell me how to permantly add ndiswrapper to the pcimap or why the remove part of my skript issend executed, it would be great help!

Thx
max
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Hotplug, USB device type identification tlaresearch Programming 2 07-21-2005 08:55 AM
hotplug recognizes USB phone, but where's the device? grayFalcon Debian 2 06-19-2005 06:14 AM
How can I make Murasaki behave like Hotplug for an unkown device? milewis1 Linux - Hardware 1 05-25-2005 12:57 PM
Disable hotplug or USB device in Fedora Core 2 crashdum Fedora 1 09-03-2004 08:01 AM
Firmware/Hotplug problem with Hauppauge DEC2540-T, Hotplug and MythTV bezoomny Linux - Hardware 0 05-17-2004 01:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 01:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration