From 2f8d6dfcd54c7af0163fb3ca849f1d543f977b73 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Mon, 31 Jan 2000 20:30:27 +0000 Subject: bring down *all* interfaces on network stop --- sysconfig/network-scripts/ifup | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'sysconfig') 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 -- cgit v1.2.1