LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-17-2004, 11:48 PM   #1
vb7prog
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
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 66
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.

Yves.
 
  


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
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

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:11 PM.

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