View previous topic :: View next topic |
Author |
Message |
MultiMike n00b
Joined: 31 May 2004 Posts: 38
|
Posted: Sat Dec 18, 2004 5:20 am Post subject: Network Cable Detection [SOLVED] |
|
|
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 |
|
|
tomaw Guru
Joined: 26 Mar 2003 Posts: 429 Location: UK
|
Posted: Sat Dec 18, 2004 1:43 pm Post subject: |
|
|
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 |
|
|
MultiMike n00b
Joined: 31 May 2004 Posts: 38
|
Posted: Sun Dec 19, 2004 11:11 pm Post subject: |
|
|
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 |
|
|
Aesir-NL n00b
Joined: 20 Dec 2004 Posts: 1
|
Posted: Mon Dec 20, 2004 10:30 am Post subject: |
|
|
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 |
|
|
MultiMike n00b
Joined: 31 May 2004 Posts: 38
|
Posted: Tue Dec 21, 2004 12:16 am Post subject: |
|
|
That is exactly what I was looking for. Thanks for the help Aesir. |
|
Back to top |
|
|
|