diff options
author | Bill Nottingham <notting@redhat.com> | 2002-04-22 01:12:49 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2002-04-22 01:12:49 +0000 |
commit | e60a3d2e5a66f25c6194213820b8f1273074a48b (patch) | |
tree | 5398bfac3aa167e47966776a51c70aa46b29e205 /sysconfig/network-scripts/ifup-aliases | |
parent | 8cfc4bbd6da645bc7c29fc600126663bdbc2db83 (diff) | |
download | initscripts-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)
Diffstat (limited to 'sysconfig/network-scripts/ifup-aliases')
-rwxr-xr-x | sysconfig/network-scripts/ifup-aliases | 2 |
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 |