Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
SOLVED start network when plugging in usb wireless ma101
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
red2
n00b
n00b


Joined: 03 Jun 2002
Posts: 57

PostPosted: Thu Mar 04, 2004 10:14 pm    Post subject: SOLVED start network when plugging in usb wireless ma101 Reply with quote

Hi all, I've got my Netgear ma101 b wireless card working with 2.6.4rc kernel (using the berlios driver).
But....I have to do the following things to make it work:
1 plug it in
2 load the modprobe (ie modprobe at76c503a )
3 call my script to start the device (/etc/init.d/net.wlan0 restart)


I would like to automate the last two steps.
I assume I need to install hotplug. What else should I do?

Any help is appreciated greatly.


Last edited by red2 on Mon Mar 08, 2004 7:34 am; edited 1 time in total
Back to top
View user's profile Send private message
RJNFC
n00b
n00b


Joined: 07 Dec 2002
Posts: 19

PostPosted: Sun Mar 07, 2004 8:13 pm    Post subject: possibly- Reply with quote

You may just have to put the module name in /etc/modules.autoload and do 'rc-update add net.wlan0 default' to make it startup. That's assuming everything else is setup. Should work.
Back to top
View user's profile Send private message
RJNFC
n00b
n00b


Joined: 07 Dec 2002
Posts: 19

PostPosted: Sun Mar 07, 2004 9:34 pm    Post subject: er Reply with quote

Sorry, that will work only if you have it plugged in when you boot, I think.
Back to top
View user's profile Send private message
red2
n00b
n00b


Joined: 03 Jun 2002
Posts: 57

PostPosted: Mon Mar 08, 2004 7:33 am    Post subject: got it working Reply with quote

I had to emerge hotplug (which takes care of modprobing the appropriate modules for you when you plug it in).
Hotplug also has the ability to run scripts for you, which is what I wanted to do. But I had to edit the /etc/hotplug/net.agent script to make it connect to the wireless network.

I commented out these lines
Code:
#    if [ ! -f /var/lock/subsys/network ]; then

#       exit 0
#    fi


and added this in the case $ACTION case $INTERFACE statement:
Code:
wlan*)

Hopefully this helps someone
          echo "wlan restart please...">>/tmp/hotplug.log
            debug_mesg invoke "$script" --quiet restart
            exec "$script" --quiet restart
        ;;


note that the difference is the restart instead of start (if I unplugged it after starting it wouldn't restart the network correctly).

This link from the hotplug page is what helped me (well explained a little about hotplug works for network interfaces)
http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/HOTPLUG.txt
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum