Download your favorite Linux distribution at LQ ISO.
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 06-14-2005, 11:54 PM   #1
LQ Newbie
Registered: Sep 2004
Distribution: Linux from Scratch 6.0, ClarkConnect server/gateway
Posts: 21

Rep: Reputation: 15
Checking network card status

Quick question: is there any way to check whether or not a cable is plugged in to the NIC? (I'm thinking through the /sys or /proc filesystems...)

Reason being, my laptop is sometimes connected to my home network, sometimes not. I'd like it to check on bootup whether it's physically connected to anything before bringing up the interface and mounting SMB shares.

As it stands, I either have to manually tell it to mount shares, or wait for it to time out during startup if I'm not connected. (takes a long time)

Oh yeah, 2.6.8 kernel, e100 driver as a module.
Old 06-15-2005, 05:55 AM   #2
Registered: Jul 2004
Location: /home/mikezila
Distribution: Slackware
Posts: 377

Rep: Reputation: 30
You could try "ifconfig" as root. It should give you some output on your network interfaces. I don't know how descriptive it is, as my net card is wireless, and it's status command is different.


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
Checking device status neerukamra Linux - General 1 09-06-2004 01:12 AM
command(s) for checking ip status stupidloser Linux - Wireless Networking 5 08-10-2004 10:21 AM
checking the status of PPP0 pudhiyavan Linux - Networking 6 01-14-2004 02:47 AM
Cannot get network card status up Synth3tic Linux - Newbie 14 05-22-2003 10:13 PM
Cannot Get network card status up Synth3tic Linux - Networking 3 05-21-2003 11:32 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:38 AM.

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