From c06640d57ea201350bc844e67fd15373762cbcbe Mon Sep 17 00:00:00 2001 From: Preston Brown Date: Fri, 13 Jul 2001 15:03:31 +0000 Subject: better check for MII. --- sysconfig/network-scripts/network-functions | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'sysconfig/network-scripts') 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 -- cgit v1.2.1