LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 06-15-2005, 12:54 AM   #1
BNI
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, 06:55 AM   #2
MikeZila
Member
 
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.
 
  


Reply


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


All times are GMT -5. The time now is 07:40 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration