LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-28-2005, 02:51 PM   #1
eeades
Member
 
Registered: Sep 2004
Distribution: Slackware
Posts: 117

Rep: Reputation: 15
Network card connection state


Does anyone know where the driver for the realtek cards would put the connection status of the cable? What I would like to do is modify the startup script so that DHCP is not trying to aquire an address if the cable is not hooked up. If I am using wireless, or in a location that I do not have/need network access, I do not want to wait for DHCP to decide that it won't get a response.

Thanks,

Eric
 
Old 02-28-2005, 03:07 PM   #2
nonzero
Member
 
Registered: Feb 2005
Distribution: Debian FC4 LFS Slackware
Posts: 174

Rep: Reputation: 31
We do not mess with startup scripts, we add and remove services or devices using the appropriate tools. i.e. ifconfig eth0 down etc. etc.....

nz
 
Old 02-28-2005, 03:14 PM   #3
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
You should be able to use mii-tool to determine this. This SHOULD work:
Code:
if [ `/sbin/mii-tool eth0 | grep -ci 'link up'` -eq 0 ]
then echo "Link is down"
else echo "Link is up"
fi
 
Old 02-28-2005, 06:13 PM   #4
eeades
Member
 
Registered: Sep 2004
Distribution: Slackware
Posts: 117

Original Poster
Rep: Reputation: 15
Thank you very much

Eric
 
  


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
How to see internet connection state icon ? How not to see XP's folders, in Suse9.3 ? tennis SUSE / openSUSE 1 08-14-2005 05:10 AM
Time out in Connection established state if no Data flows on that connection asurya Linux - Networking 2 04-10-2005 03:54 PM
Time out in Connection established state asurya Linux - Newbie 1 04-10-2005 03:48 PM
to find state connection is in? live_dont_exist Programming 4 03-28-2005 04:11 PM
Box wont boot after kernel upgrade "Dump Card State Ends" error with scsi card abefroman Mandriva 0 03-25-2004 03:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:23 AM.

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