diff options
author | Václav Pavlín <vpavlin@redhat.com> | 2013-01-22 10:57:14 +0100 |
---|---|---|
committer | Václav Pavlín <vpavlin@redhat.com> | 2013-01-22 10:57:14 +0100 |
commit | 4df13e9715b92743a4b842e2a0df6a9c36a9790c (patch) | |
tree | 3d4c8518ec3f4db18d62e7ba7c39f38a2240007b | |
parent | 8f32a3743a13cc7cf45ca31705d104285e6e78c7 (diff) | |
download | initscripts-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-x | rc.d/init.d/network | 3 |
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 |