summaryrefslogtreecommitdiffstats
path: root/etc/rc.network
diff options
context:
space:
mode:
authorsheldonh <sheldonh@FreeBSD.org>2001-11-14 06:35:43 +0000
committersheldonh <sheldonh@FreeBSD.org>2001-11-14 06:35:43 +0000
commitfa34986a65d9f598ce615796a9e39942487ab06b (patch)
tree2fe0b15358cebf7c2aa6f5356aa417d43b5c528f /etc/rc.network
parente3b965f7d57557c7273b062793ee6de6ff40223d (diff)
downloadFreeBSD-src-fa34986a65d9f598ce615796a9e39942487ab06b.zip
FreeBSD-src-fa34986a65d9f598ce615796a9e39942487ab06b.tar.gz
Avoid unnecessary calls to expr(1) by using standard shell arithmetic
expansion instead.
Diffstat (limited to 'etc/rc.network')
-rw-r--r--etc/rc.network2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/rc.network b/etc/rc.network
index db56699..e4bf1e6 100644
--- a/etc/rc.network
+++ b/etc/rc.network
@@ -218,7 +218,7 @@ network_pass1() {
if [ -n "${ifconfig_args}" ]; then
ifconfig ${ifn} ${ifconfig_args} alias
eval showstat_$ifn=1
- alias=`expr ${alias} + 1`
+ alias=$((${alias} + 1))
else
break;
fi
OpenPOWER on IntegriCloud