aboutsummaryrefslogtreecommitdiff
path: root/net.Linux
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-11-02 10:07:10 +0000
committerRoy Marples <roy@marples.name>2007-11-02 10:07:10 +0000
commit220f6f8fdba09d8e19b61a060d29d3d3bd6e13aa (patch)
treef5e503c9d23e86e5cebd6a5360f96547600db1d1 /net.Linux
parent54a8d559267290f2e1f7e4be210ee511fc0bbb56 (diff)
Fix an ifconfig calculation for shells that don't support the newer POSIX shell math expansion, #197856.
Diffstat (limited to 'net.Linux')
-rw-r--r--net.Linux/ifconfig.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/net.Linux/ifconfig.sh b/net.Linux/ifconfig.sh
index 4051ef57..c515d4d0 100644
--- a/net.Linux/ifconfig.sh
+++ b/net.Linux/ifconfig.sh
@@ -106,7 +106,7 @@ _cidr2netmask() {
while [ ${i} -lt ${frac} ] ; do
sum=$((${sum} + ${cur}))
cur=$((${cur} / 2))
- i=$((i + 1))
+ i=$((${i} + 1))
done
netmask="${netmask}.${sum}"
done=$((${done} + 1))