aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2004-01-28 21:00:22 +0000
committerBill Nottingham <notting@redhat.com>2004-01-28 21:00:22 +0000
commit53d91a6936d3d65aa1f71ff792b2c906426d2f31 (patch)
treef6881a62040b71bad79ebebc94561a3d6fe98b1e /rc.d/init.d
parent22d118cb3f2a4d805a987fc457ba0f813a673ddf (diff)
downloadinitscripts-53d91a6936d3d65aa1f71ff792b2c906426d2f31.tar
initscripts-53d91a6936d3d65aa1f71ff792b2c906426d2f31.tar.gz
initscripts-53d91a6936d3d65aa1f71ff792b2c906426d2f31.tar.bz2
initscripts-53d91a6936d3d65aa1f71ff792b2c906426d2f31.tar.xz
initscripts-53d91a6936d3d65aa1f71ff792b2c906426d2f31.zip
clear out environment (#113937, #111584)
Diffstat (limited to 'rc.d/init.d')
-rwxr-xr-xrc.d/init.d/network9
1 files changed, 9 insertions, 0 deletions
diff --git a/rc.d/init.d/network b/rc.d/init.d/network
index 9452deeb..f4b46f25 100755
--- a/rc.d/init.d/network
+++ b/rc.d/init.d/network
@@ -111,21 +111,26 @@ case "$1" in
if [ "${DEVICE##cipcb}" != "$DEVICE" ] ; then
cipeinterfaces="$cipeinterfaces $i"
+ unset DEVICE TYPE SLAVE BRIDGE
continue
fi
if [ "$TYPE" = "xDSL" ]; then
xdslinterfaces="$xdslinterfaces $i"
+ unset DEVICE TYPE SLAVE BRIDGE
continue
fi
if [ -n "$BRIDGE" ]; then
bridgeinterfaces="$bridgeinterfaces $i"
+ unset DEVICE TYPE SLAVE BRIDGE
continue
fi
if [ "$SLAVE" = "yes" ]; then
+ unset DEVICE TYPE SLAVE BRIDGE
continue
fi
+ unset DEVICE TYPE SLAVE BRIDGE
if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
# this loads the module, to preserve ordering
@@ -206,16 +211,20 @@ case "$1" in
if [ "${DEVICE##cipcb}" != "$DEVICE" ] ; then
cipeinterfaces="$cipeinterfaces $i"
+ unset DEVICE TYPE BRIDGE
continue
fi
if [ -n "$BRIDGE" ]; then
bridgeinterfaces="$bridgeinterfaces $i"
+ unset DEVICE TYPE BRIDGE
continue
fi
if [ "$TYPE" = "xDSL" ]; then
xdslinterfaces="$xdslinterfaces $i"
+ unset DEVICE TYPE BRIDGE
continue
fi
+ unset DEVICE TYPE BRIDGE
done
for i in $cipeinterfaces $xdslinterfaces $bridgeinterfaces ; do