aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net/ifconfig.sh.Linux.in2
-rw-r--r--net/iproute2.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/net/ifconfig.sh.Linux.in b/net/ifconfig.sh.Linux.in
index 8abc9983..19e5c355 100644
--- a/net/ifconfig.sh.Linux.in
+++ b/net/ifconfig.sh.Linux.in
@@ -32,7 +32,7 @@ _ifindex()
for f in /sys/class/net/*/ifindex ; do
v=$(cat $f)
[ $v -gt $index ] && index=$v
- done
+ done
: $(( index += 1 ))
fi
echo "${index}"
diff --git a/net/iproute2.sh b/net/iproute2.sh
index b420e41b..16186e8e 100644
--- a/net/iproute2.sh
+++ b/net/iproute2.sh
@@ -33,7 +33,7 @@ _ifindex()
for f in /sys/class/net/*/ifindex ; do
v=$(cat $f)
[ $v -gt $index ] && index=$v
- done
+ done
: $(( index += 1 ))
fi
echo "${index}"