aboutsummaryrefslogtreecommitdiffstats
path: root/network-scripts/network-functions
diff options
context:
space:
mode:
Diffstat (limited to 'network-scripts/network-functions')
-rw-r--r--network-scripts/network-functions4
1 files changed, 2 insertions, 2 deletions
diff --git a/network-scripts/network-functions b/network-scripts/network-functions
index c7d9e60e..89c0bcaf 100644
--- a/network-scripts/network-functions
+++ b/network-scripts/network-functions
@@ -572,7 +572,7 @@ install_bonding_driver ()
# add the bits to setup driver parameters here
# first set mode, miimon
- for (( idx=0; idx < ${#bopts_keys[*]}; idx++ )) ; do
+ for idx in $(seq 0 $(( ${#bopts_keys[*]} - 1 ))) ; do
key=${bopts_keys[$idx]}
value=${bopts_vals[$idx]}
@@ -591,7 +591,7 @@ install_bonding_driver ()
done
# set all other remaining options
- for (( idx=0; idx < ${#bopts_keys[*]}; idx++ )) ; do
+ for idx in $(seq 0 $(( ${#bopts_keys[*]} - 1 ))) ; do
key=${bopts_keys[$idx]}
value=${bopts_vals[$idx]}