Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 11-17-2004, 11:48 PM   #1
LQ Newbie
Registered: Nov 2004
Posts: 1

Rep: Reputation: 0
auto detect disconnect / connect

I have linux loaded on my laptop, and the problem is this. Sometimes I turn on my laptop and a few minutes later I plug in the network cord. At this point I have to log into root and restart the network service either thru a gui or the prompt. This is annoying for me and I'm wondering if there is a script or something that will detect whether a physical disconnect has occured. I know windows xp has this feature,so it must be possible. If its not possible in the short run, then is there a way to set permissions so a single user has the ability to restart the network service. Thanks in advance.
Old 11-18-2004, 03:26 AM   #2
Senior Member
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 63
Connect/Disconnect is automatically detected in Mandrake 10. If I remember correctly, it is related to a module named "mii" that should be a require of your network driver module. In Mandrake, the /etc/sysconfig/... files state that the network adapter is MII-aware, and then a daemon is started, that does autodetection. I don't remember how this daemon is called. You can track this down from the /etc/rc.d/init.d/network script.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
eth0 Auto Connect, How to auto start on logon cornish Linux - Networking 2 05-09-2005 12:02 PM
How do I: Auto disconnect modem. cachinnare Linux - Networking 3 02-08-2005 11:52 PM
how do i connect to the internet without becoming su, and disconnect afterwards? Quercus ruber Linux - Newbie 7 07-30-2004 03:07 PM
wget and auto resuming after disconnect GT I.N.C Linux - Software 6 05-10-2003 06:45 AM
How to connect or disconnect adsl Mimicafe Linux - Networking 4 03-07-2003 10:48 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:43 PM.

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