summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackware.com>2017-07-13 19:11:47 -0500
committerRobby Workman <rworkman@slackware.com>2017-07-13 19:11:47 -0500
commit6281b5d47da57004b1d00f1a9946f5af6cca38a0 (patch)
treebc4719497512c49dba492ead15d605578791d672
parent04cd52d9770c138cebc5ada8fa9732911b226307 (diff)
downloadslacknetsetup-6281b5d47da57004b1d00f1a9946f5af6cca38a0.tar.xz
rc.inet1: Use bash builtin arithmetic instead of external expr
-rw-r--r--rc.inet12
1 files changed, 1 insertions, 1 deletions
diff --git a/rc.inet1 b/rc.inet1
index 9ab5102..871b38d 100644
--- a/rc.inet1
+++ b/rc.inet1
@@ -76,7 +76,7 @@ lo_down() {
# Function to determine if virtual interfaces are defined
virtif_determine() {
if [ ! -z ${VIRTIFNAME} ]; then
- virtifcount=$(expr $(echo ${VIRTIFNAME[@]} | wc -w) - 1)
+ virtifcount=$(($(echo ${VIRTIFNAME[@]} | wc -w) - 1))
else
return 1
fi