aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifup-aliases
diff options
context:
space:
mode:
authorVictor Lowther <victor.lowther@gmail.com>2009-07-29 17:36:31 -0400
committerBill Nottingham <notting@redhat.com>2009-07-30 12:24:41 -0400
commit525d516df94b7c044cd97de27b6924d188ed4048 (patch)
treed3b0ea52cf800b61d647907b4263e55874fec616 /sysconfig/network-scripts/ifup-aliases
parent1096cd2ebc150e5c74b5e8e4016b835f34cd3f48 (diff)
downloadinitscripts-525d516df94b7c044cd97de27b6924d188ed4048.tar
initscripts-525d516df94b7c044cd97de27b6924d188ed4048.tar.gz
initscripts-525d516df94b7c044cd97de27b6924d188ed4048.tar.bz2
initscripts-525d516df94b7c044cd97de27b6924d188ed4048.tar.xz
initscripts-525d516df94b7c044cd97de27b6924d188ed4048.zip
Use $(( )) for arithmetic statements instead of let or $[ ].
Diffstat (limited to 'sysconfig/network-scripts/ifup-aliases')
-rwxr-xr-xsysconfig/network-scripts/ifup-aliases4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysconfig/network-scripts/ifup-aliases b/sysconfig/network-scripts/ifup-aliases
index 83f53c09..c8b8634a 100755
--- a/sysconfig/network-scripts/ifup-aliases
+++ b/sysconfig/network-scripts/ifup-aliases
@@ -351,8 +351,8 @@ for FILE in ifcfg-${parent_device}-range* ; do
IPADDR="$ipaddr_prefix.$ipaddr_num"
DEVICE="$parent_device:$ipaddr_clonenum"
[ "$ONPARENT" != "no" -a "$ONPARENT" != "NO" ] && new_interface;
- let 'ipaddr_num=ipaddr_num+1'
- let 'ipaddr_clonenum=ipaddr_clonenum+1'
+ ipaddr_num=$(($ipaddr_num+1))
+ ipaddr_clonenum=$(($ipaddr_clonenum+1))
done
done