aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2002-04-22 01:12:49 +0000
committerBill Nottingham <notting@redhat.com>2002-04-22 01:12:49 +0000
commite60a3d2e5a66f25c6194213820b8f1273074a48b (patch)
tree5398bfac3aa167e47966776a51c70aa46b29e205
parent8cfc4bbd6da645bc7c29fc600126663bdbc2db83 (diff)
downloadinitscripts-e60a3d2e5a66f25c6194213820b8f1273074a48b.tar
initscripts-e60a3d2e5a66f25c6194213820b8f1273074a48b.tar.gz
initscripts-e60a3d2e5a66f25c6194213820b8f1273074a48b.tar.bz2
initscripts-e60a3d2e5a66f25c6194213820b8f1273074a48b.tar.xz
initscripts-e60a3d2e5a66f25c6194213820b8f1273074a48b.zip
handle aliases that don't have DEVICE set. Apparently linuxconf supported this (#63861)
-rwxr-xr-xsysconfig/network-scripts/ifup-aliases2
1 files changed, 2 insertions, 0 deletions
diff --git a/sysconfig/network-scripts/ifup-aliases b/sysconfig/network-scripts/ifup-aliases
index 187137da..41525575 100755
--- a/sysconfig/network-scripts/ifup-aliases
+++ b/sysconfig/network-scripts/ifup-aliases
@@ -295,7 +295,9 @@ if [ "$BASH_VERSINFO" ]; then shopt -s nullglob; else allow_null_glob_expansion=
for FILE in ifcfg-${parent_device}:*[^~] ; do
ini_env;
. $FILE;
+ [ -z "$DEVICE" ] && DEVICE=${FILE##ifcfg-}
new_interface;
+ unset DEVICE
done
for FILE in ifcfg-${parent_device}-range*[^~] ; do