From 227553340645f0864458d3764b1ff9e810219931 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Wed, 7 Apr 1999 15:40:47 +0000 Subject: fix check for non-existent devices --- sysconfig/network-scripts/ifup | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sysconfig/network-scripts') diff --git a/sysconfig/network-scripts/ifup b/sysconfig/network-scripts/ifup index 178d7226..7772012b 100755 --- a/sysconfig/network-scripts/ifup +++ b/sysconfig/network-scripts/ifup @@ -60,10 +60,10 @@ if [ -x $OTHERSCRIPT ]; then fi # is this device available? (this catches PCMCIA devices for us) -/sbin/ifconfig ${REALDEVICE} 2>&1 | grep -s "unknown interface" > /dev/null +/sbin/ifconfig ${REALDEVICE} 2>&1 | grep -s "not found" > /dev/null if [ "$?" = "0" ]; then echo "Delaying ${DEVICE} initialization." - exit 0 + exit 1 fi if [ "$SLAVE" = yes -a "$ISALIAS" = no -a "$MASTER" != "" -a \ -- cgit v1.2.1