summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackware.com>2017-07-12 02:11:28 -0500
committerRobby Workman <rworkman@slackware.com>2017-07-12 04:16:10 -0500
commit6d9819e53e571df0b657fa12535290f59c031113 (patch)
tree7b7208c1aed0d48e67f83774990adfd9e55fa353
parent30f1fdd36559899dcd53d0620b1a0c4e7cebdc29 (diff)
downloadslacknetsetup-6d9819e53e571df0b657fa12535290f59c031113.tar.xz
rc.inet1: fix index number usage in virtual interface setup/destroy
-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