Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Network Cable Detection [SOLVED]
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
MultiMike
n00b
n00b


Joined: 31 May 2004
Posts: 38

PostPosted: Sat Dec 18, 2004 5:20 am    Post subject: Network Cable Detection [SOLVED] Reply with quote

I've given myself the task of writing a startup script as a wrapper for net.eth0. The goal is that I hope to check to see if the cable is plugged in, and if so, then run net.eth0. If not, run net.wlan0 (wifi). Anyone have any ideas if this is possible with the Intel Pro/100 VE ethernet controller? Any ideas/helpful websites I can look at for ideas? I've already researched ifplugd, but I couldn't get any answers from that.

Last edited by MultiMike on Tue Dec 21, 2004 12:16 am; edited 1 time in total
Back to top
View user's profile Send private message
tomaw
Guru
Guru


Joined: 26 Mar 2003
Posts: 429
Location: UK

PostPosted: Sat Dec 18, 2004 1:43 pm    Post subject: Reply with quote

I've not used it, but you might wanna look at
Code:
*  sys-apps/ifplugd
      Latest version available: 0.25
      Latest version installed: [ Not Installed ]
      Size of downloaded files: 135 kB
      Homepage:    http://0pointer.de/lennart/projects/ifplugd/
      Description: Brings up/down ethernet ports automatically with cable detection
      License:     GPL-2

_________________
Tom Wesley
Back to top
View user's profile Send private message
MultiMike
n00b
n00b


Joined: 31 May 2004
Posts: 38

PostPosted: Sun Dec 19, 2004 11:11 pm    Post subject: Reply with quote

Like I said in my post, I've already looked at ifplugd. I don't want a service that constantly runs and checks for it, I just want to write a script that will check on boot and that's it.
Back to top
View user's profile Send private message
Aesir-NL
n00b
n00b


Joined: 20 Dec 2004
Posts: 1

PostPosted: Mon Dec 20, 2004 10:30 am    Post subject: Reply with quote

You should have a look at mii-tool (it's probably already on your system) I think it would fit your needs. All it does is report the link status, so it shouldnt be too hard to build a little script around it do do something at boot time.

semi-ot: ifplugd seems to be broken for me atm, it keeps reporting link-status changes eventho they arent actually occuring, which is kind of annoying since it keeps bringing down my network interface every 5s :)
Back to top
View user's profile Send private message
MultiMike
n00b
n00b


Joined: 31 May 2004
Posts: 38

PostPosted: Tue Dec 21, 2004 12:16 am    Post subject: Reply with quote

That is exactly what I was looking for. Thanks for the help Aesir.
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