aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2011-04-12 11:02:34 -0400
committerBill Nottingham <notting@redhat.com>2011-04-12 11:08:32 -0400
commitc97a314920437b0d99d2c604df0c43b4b4ee8bac (patch)
tree00e1101fa81cc5fd892ccf0803e8dd63f20927db /sysconfig/network-scripts
parent88fcc980d1ae6157c43a45dae0f11faf29e1d6ee (diff)
downloadinitscripts-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-functions2
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)