aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPreston Brown <pbrown@redhat.com>2001-07-13 15:03:31 +0000
committerPreston Brown <pbrown@redhat.com>2001-07-13 15:03:31 +0000
commitc06640d57ea201350bc844e67fd15373762cbcbe (patch)
treeb6512017ace6d5d33e4bee1585fd7a3c5eda8563
parent89dc8d4b510e5f99df4492748e1979d065e9be7a (diff)
downloadinitscripts-c06640d57ea201350bc844e67fd15373762cbcbe.tar
initscripts-c06640d57ea201350bc844e67fd15373762cbcbe.tar.gz
initscripts-c06640d57ea201350bc844e67fd15373762cbcbe.tar.bz2
initscripts-c06640d57ea201350bc844e67fd15373762cbcbe.tar.xz
initscripts-c06640d57ea201350bc844e67fd15373762cbcbe.zip
better check for MII.
-rw-r--r--sysconfig/network-scripts/network-functions8
1 files changed, 6 insertions, 2 deletions
diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions
index b8529800..49542d87 100644
--- a/sysconfig/network-scripts/network-functions
+++ b/sysconfig/network-scripts/network-functions
@@ -1,5 +1,7 @@
-# This is not a shell script; it provides functions to network scripts
-# that source it.
+# -*-Shell-script-*-
+#
+# This file is not a stand-alone shell script; it provides functions
+# to network scripts that source it.
need_config()
{
@@ -99,6 +101,8 @@ check_link_down ()
return 1
elif echo $output | grep -q "link ok"; then
return 1
+ elif echo $output | grep -q "No MII transceiver present"; then
+ return 1
else
return 0
fi