aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVáclav Pavlín <vpavlin@redhat.com>2013-01-22 10:57:14 +0100
committerVáclav Pavlín <vpavlin@redhat.com>2013-01-22 10:57:14 +0100
commit4df13e9715b92743a4b842e2a0df6a9c36a9790c (patch)
tree3d4c8518ec3f4db18d62e7ba7c39f38a2240007b
parent8f32a3743a13cc7cf45ca31705d104285e6e78c7 (diff)
downloadinitscripts-4df13e9715b92743a4b842e2a0df6a9c36a9790c.tar
initscripts-4df13e9715b92743a4b842e2a0df6a9c36a9790c.tar.gz
initscripts-4df13e9715b92743a4b842e2a0df6a9c36a9790c.tar.bz2
initscripts-4df13e9715b92743a4b842e2a0df6a9c36a9790c.tar.xz
initscripts-4df13e9715b92743a4b842e2a0df6a9c36a9790c.zip
Clear DEVICE and TYPE variables before every iteration (#902463)
-rwxr-xr-xrc.d/init.d/network3
1 files changed, 1 insertions, 2 deletions
diff --git a/rc.d/init.d/network b/rc.d/init.d/network
index 62a344de..73e9d2f7 100755
--- a/rc.d/init.d/network
+++ b/rc.d/init.d/network
@@ -222,10 +222,9 @@ case "$1" in
fi
remaining="$remaining $i"
done
-
- unset DEVICE TYPE
for i in $vpninterfaces $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
+ unset DEVICE TYPE
(. ./ifcfg-$i
if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi