aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>1999-04-07 15:40:47 +0000
committerBill Nottingham <notting@redhat.com>1999-04-07 15:40:47 +0000
commit227553340645f0864458d3764b1ff9e810219931 (patch)
tree98be1afbd02656364bf5140b5567383d5380bd99
parentef3d1e10d2012c9e2eec27cc87ffc8683e38a955 (diff)
downloadinitscripts-227553340645f0864458d3764b1ff9e810219931.tar
initscripts-227553340645f0864458d3764b1ff9e810219931.tar.gz
initscripts-227553340645f0864458d3764b1ff9e810219931.tar.bz2
initscripts-227553340645f0864458d3764b1ff9e810219931.tar.xz
initscripts-227553340645f0864458d3764b1ff9e810219931.zip
fix check for non-existent devices
-rwxr-xr-xsysconfig/network-scripts/ifup4
1 files changed, 2 insertions, 2 deletions
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 \