summaryrefslogtreecommitdiffstats
path: root/rc.inet1
diff options
context:
space:
mode:
Diffstat (limited to 'rc.inet1')
-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