aboutsummaryrefslogtreecommitdiff
path: root/net/iproute2.sh
diff options
context:
space:
mode:
Diffstat (limited to 'net/iproute2.sh')
-rw-r--r--net/iproute2.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/iproute2.sh b/net/iproute2.sh
index 660d5147..91282ea6 100644
--- a/net/iproute2.sh
+++ b/net/iproute2.sh
@@ -36,7 +36,7 @@ _ifindex()
{
local line= i=-2
while read line; do
- i=$((${i} + 1))
+ : $(( i += 1 ))
[ ${i} -lt 1 ] && continue
case "${line}" in
"${IFACE}:"*) echo "${i}"; return 0;;
@@ -44,7 +44,7 @@ _ifindex()
done < /proc/net/dev
# Return the next available index
- i=$((${i} + 1))
+ : $(( i += 1 ))
echo "${i}"
return 1
}
@@ -290,7 +290,7 @@ iproute2_post_start()
while [ $n -ge 0 ]; do
_iproute2_ipv6_tentative || break
sleep 1
- n=$(($n - 1))
+ : $(( n -= 1 ))
done
[ $n -ge 0 ]
eend $?