summaryrefslogtreecommitdiffstats
path: root/etc
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
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')
-rw-r--r--etc/network.subr2
-rw-r--r--etc/rc.atm2
-rw-r--r--etc/rc.d/atm12
-rw-r--r--etc/rc.d/atm22
-rw-r--r--etc/rc.d/atm2.sh2
-rw-r--r--etc/rc.d/atm32
-rw-r--r--etc/rc.d/atm3.sh2
-rw-r--r--etc/rc.d/netoptions2
-rw-r--r--etc/rc.d/network12
-rw-r--r--etc/rc.d/network22
-rw-r--r--etc/rc.d/network32
-rw-r--r--etc/rc.d/routing2
-rw-r--r--etc/rc.network2
13 files changed, 13 insertions, 13 deletions
diff --git a/etc/network.subr b/etc/network.subr
index db56699..e4bf1e6 100644
--- a/etc/network.subr
+++ b/etc/network.subr
@@ -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
diff --git a/etc/rc.atm b/etc/rc.atm
index 88e4354..1c53c7f 100644
--- a/etc/rc.atm
+++ b/etc/rc.atm
@@ -148,7 +148,7 @@ atm_pass2() {
netindx=0
while [ ${netindx} -lt ${netcnt} ]; do
net="${netname}${netindx}"
- netindx=`expr ${netindx} + 1`
+ netindx=$((${netindx} + 1))
echo -n " ${net}"
# Configure atmarp server
diff --git a/etc/rc.d/atm1 b/etc/rc.d/atm1
index 88e4354..1c53c7f 100644
--- a/etc/rc.d/atm1
+++ b/etc/rc.d/atm1
@@ -148,7 +148,7 @@ atm_pass2() {
netindx=0
while [ ${netindx} -lt ${netcnt} ]; do
net="${netname}${netindx}"
- netindx=`expr ${netindx} + 1`
+ netindx=$((${netindx} + 1))
echo -n " ${net}"
# Configure atmarp server
diff --git a/etc/rc.d/atm2 b/etc/rc.d/atm2
index 88e4354..1c53c7f 100644
--- a/etc/rc.d/atm2
+++ b/etc/rc.d/atm2
@@ -148,7 +148,7 @@ atm_pass2() {
netindx=0
while [ ${netindx} -lt ${netcnt} ]; do
net="${netname}${netindx}"
- netindx=`expr ${netindx} + 1`
+ netindx=$((${netindx} + 1))
echo -n " ${net}"
# Configure atmarp server
diff --git a/etc/rc.d/atm2.sh b/etc/rc.d/atm2.sh
index 88e4354..1c53c7f 100644
--- a/etc/rc.d/atm2.sh
+++ b/etc/rc.d/atm2.sh
@@ -148,7 +148,7 @@ atm_pass2() {
netindx=0
while [ ${netindx} -lt ${netcnt} ]; do
net="${netname}${netindx}"
- netindx=`expr ${netindx} + 1`
+ netindx=$((${netindx} + 1))
echo -n " ${net}"
# Configure atmarp server
diff --git a/etc/rc.d/atm3 b/etc/rc.d/atm3
index 88e4354..1c53c7f 100644
--- a/etc/rc.d/atm3
+++ b/etc/rc.d/atm3
@@ -148,7 +148,7 @@ atm_pass2() {
netindx=0
while [ ${netindx} -lt ${netcnt} ]; do
net="${netname}${netindx}"
- netindx=`expr ${netindx} + 1`
+ netindx=$((${netindx} + 1))
echo -n " ${net}"
# Configure atmarp server
diff --git a/etc/rc.d/atm3.sh b/etc/rc.d/atm3.sh
index 88e4354..1c53c7f 100644
--- a/etc/rc.d/atm3.sh
+++ b/etc/rc.d/atm3.sh
@@ -148,7 +148,7 @@ atm_pass2() {
netindx=0
while [ ${netindx} -lt ${netcnt} ]; do
net="${netname}${netindx}"
- netindx=`expr ${netindx} + 1`
+ netindx=$((${netindx} + 1))
echo -n " ${net}"
# Configure atmarp server
diff --git a/etc/rc.d/netoptions b/etc/rc.d/netoptions
index db56699..e4bf1e6 100644
--- a/etc/rc.d/netoptions
+++ b/etc/rc.d/netoptions
@@ -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
diff --git a/etc/rc.d/network1 b/etc/rc.d/network1
index db56699..e4bf1e6 100644
--- a/etc/rc.d/network1
+++ b/etc/rc.d/network1
@@ -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
diff --git a/etc/rc.d/network2 b/etc/rc.d/network2
index db56699..e4bf1e6 100644
--- a/etc/rc.d/network2
+++ b/etc/rc.d/network2
@@ -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
diff --git a/etc/rc.d/network3 b/etc/rc.d/network3
index db56699..e4bf1e6 100644
--- a/etc/rc.d/network3
+++ b/etc/rc.d/network3
@@ -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
diff --git a/etc/rc.d/routing b/etc/rc.d/routing
index db56699..e4bf1e6 100644
--- a/etc/rc.d/routing
+++ b/etc/rc.d/routing
@@ -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
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