diff options
author | Bill Nottingham <notting@redhat.com> | 2011-04-12 11:02:34 -0400 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2011-04-12 11:08:32 -0400 |
commit | c97a314920437b0d99d2c604df0c43b4b4ee8bac (patch) | |
tree | 00e1101fa81cc5fd892ccf0803e8dd63f20927db /sysconfig/network-scripts | |
parent | 88fcc980d1ae6157c43a45dae0f11faf29e1d6ee (diff) | |
download | initscripts-c97a314920437b0d99d2c604df0c43b4b4ee8bac.tar initscripts-c97a314920437b0d99d2c604df0c43b4b4ee8bac.tar.gz initscripts-c97a314920437b0d99d2c604df0c43b4b4ee8bac.tar.bz2 initscripts-c97a314920437b0d99d2c604df0c43b4b4ee8bac.tar.xz initscripts-c97a314920437b0d99d2c604df0c43b4b4ee8bac.zip |
Fix index handling for expanded configs <jklimes@redhat.com>
Diffstat (limited to 'sysconfig/network-scripts')
-rw-r--r-- | sysconfig/network-scripts/network-functions | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions index e4b7af85..6b9b4855 100644 --- a/sysconfig/network-scripts/network-functions +++ b/sysconfig/network-scripts/network-functions @@ -160,7 +160,7 @@ expand_config () for idx in '' {0..255} ; do ipaddr[$i]=$(eval echo '$'IPADDR$idx) if [ -z "${ipaddr[$i]}" ]; then - [ "$idx" ] && [ $idx -gt 2 ] && break + [ "$idx" ] && [ $idx -ge 2 ] && break continue fi prefix[$i]=$(eval echo '$'PREFIX$idx) |