-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
NotDashEscaped: You need GnuPG to verify this message
In comp.os.linux.networking Michael Eager <(E-Mail Removed)> suggested:
> I'm running Fedora Core 2 on a laptop.
> If the network cable is not connected, startup takes a long
> time. Network configuration tries to get an IP address using
> DHCP and this takes a couple minutes to time out.
> Is there any way to check if the network cable is connected
> so that I can bypass the DHCP check?
Perhaps mii-tool output could be parsed, albeit it requires the
module for you NIC loaded and mii-status support in the
NIC/module.
# mii-tool
eth0: no autonegotiation, 10baseT-HD, link ok
SIOCGMIIPHY on 'eth1' failed: Operation not supported
eth2: negotiated 100baseTx-FD, link ok
eth0/2 are mii-status aware and "link ok" says there's a cable
connected with link. eth1 doesn't support mii-status so one would
be out of luck here.
--
Michael Heiming (GPG-Key ID: 0xEDD27B94)
mail: echo
(E-Mail Removed) | perl -pe 'y/a-z/n-za-m/'
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFBLDFOAkPEju3Se5QRAt+LAJ9fLYYgDVvNsVhe7FSMrf PNvHOrXQCeOQiB
sEDbkYg2zsqsrOGsm15qKQs=
=uTCp
-----END PGP SIGNATURE-----