aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2000-01-31 20:30:27 +0000
committerBill Nottingham <notting@redhat.com>2000-01-31 20:30:27 +0000
commit2f8d6dfcd54c7af0163fb3ca849f1d543f977b73 (patch)
tree94b091ac9d85c37ce7e2b99d2d4c5b6972e5a365 /sysconfig/network-scripts
parent8444e6f477ed933425d3f6e832840f90a3c98b05 (diff)
downloadinitscripts-2f8d6dfcd54c7af0163fb3ca849f1d543f977b73.tar
initscripts-2f8d6dfcd54c7af0163fb3ca849f1d543f977b73.tar.gz
initscripts-2f8d6dfcd54c7af0163fb3ca849f1d543f977b73.tar.bz2
initscripts-2f8d6dfcd54c7af0163fb3ca849f1d543f977b73.tar.xz
initscripts-2f8d6dfcd54c7af0163fb3ca849f1d543f977b73.zip
bring down *all* interfaces on network stopr4-85
Diffstat (limited to 'sysconfig/network-scripts')
-rwxr-xr-xsysconfig/network-scripts/ifup11
1 files changed, 6 insertions, 5 deletions
diff --git a/sysconfig/network-scripts/ifup b/sysconfig/network-scripts/ifup
index 116a4e5f..8e37de6b 100755
--- a/sysconfig/network-scripts/ifup
+++ b/sysconfig/network-scripts/ifup
@@ -31,11 +31,6 @@ fi
source_config
-if [ "foo$2" = "fooboot" -a "${ONBOOT}" = "no" -o "${ONBOOT}" = "NO" ]
-then
- exit
-fi
-
IPSETUP=no
DEVICETYPE=`echo $DEVICE | sed "s/[0-9]*$//"`
@@ -55,6 +50,12 @@ if [ "$BOOTPROTO" = bootp -o "$BOOTPROTO" = dhcp ]; then
PUMP=true
fi
+if [ "$2" = "boot" -a "${ONBOOT}" = "no" -o "${ONBOOT}" = "NO" ]; then
+ # Probe module to preserve interface ordering.
+ /sbin/ifconfig ${REALDEVICE} >/dev/null 2>&1
+ exit
+fi
+
OTHERSCRIPT="/etc/sysconfig/network-scripts/ifup-${DEVICETYPE}"
if [ -x $OTHERSCRIPT ]; then