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 2f982ca..9ab5102 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=$(echo ${VIRTIFNAME[@]} | wc -w)
+ virtifcount=$(expr $(echo ${VIRTIFNAME[@]} | wc -w) - 1)
else
return 1
fi