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:02:34 -0400
commit77977daabdb09b5dac49e6f5b733527f60cafe6a (patch)
tree568c7a816cf2cc893491713d65e154cee5ee2695 /sysconfig/network-scripts
parentb24d6b8667ccd7b764d540a623b800a2411ad8a8 (diff)
downloadinitscripts-77977daabdb09b5dac49e6f5b733527f60cafe6a.tar
initscripts-77977daabdb09b5dac49e6f5b733527f60cafe6a.tar.gz
initscripts-77977daabdb09b5dac49e6f5b733527f60cafe6a.tar.bz2
initscripts-77977daabdb09b5dac49e6f5b733527f60cafe6a.tar.xz
initscripts-77977daabdb09b5dac49e6f5b733527f60cafe6a.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 8d92d081..6224f0c9 100644
--- a/sysconfig/network-scripts/network-functions
+++ b/sysconfig/network-scripts/network-functions
@@ -161,7 +161,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)