summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2004-01-28 21:02:24 +0000
committerBill Nottingham <notting@redhat.com>2004-01-28 21:02:24 +0000
commit8511bee60cf26b222eab16a25dfa586f96aad86b (patch)
treebba8fd8eab4d1055b4b24edb2d55e22d36d1a845
parent86af4e2ee9a9433b6112e902265dfa6477f7028a (diff)
downloadinitscripts-8511bee60cf26b222eab16a25dfa586f96aad86b.tar.gz
initscripts-8511bee60cf26b222eab16a25dfa586f96aad86b.tar.xz
initscripts-8511bee60cf26b222eab16a25dfa586f96aad86b.zip
clear out environment (#113937, #111584)
-rwxr-xr-xrc.d/init.d/network7
1 files changed, 7 insertions, 0 deletions
diff --git a/rc.d/init.d/network b/rc.d/init.d/network
index b43d05ab..a3aeb0e0 100755
--- a/rc.d/init.d/network
+++ b/rc.d/init.d/network
@@ -109,17 +109,21 @@ case "$1" in
if [ "${DEVICE##cipcb}" != "$DEVICE" ] ; then
cipeinterfaces="$cipeinterfaces $i"
+ unset DEVICE TYPE SLAVE
continue
fi
if [ "$TYPE" = "xDSL" ]; then
xdslinterfaces="$xdslinterfaces $i"
+ unset DEVICE TYPE SLAVE
continue
fi
if [ "$SLAVE" = "yes" ]; then
+ unset DEVICE TYPE SLAVE
continue
fi
+ unset DEVICE TYPE SLAVE
if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
# this loads the module, to preserve ordering
is_available $i
@@ -196,12 +200,15 @@ case "$1" in
if [ "${DEVICE##cipcb}" != "$DEVICE" ] ; then
cipeinterfaces="$cipeinterfaces $i"
+ unset DEVICE TYPE
continue
fi
if [ "$TYPE" = "xDSL" ]; then
xdslinterfaces="$xdslinterfaces $i"
+ unset DEVICE TYPE
continue
fi
+ unset DEVICE TYPE
done
for i in $cipeinterfaces $xdslinterfaces ; do