diff options
author | Robby Workman <rworkman@slackware.com> | 2017-07-12 02:11:28 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackware.com> | 2017-07-12 04:16:10 -0500 |
commit | 6d9819e53e571df0b657fa12535290f59c031113 (patch) | |
tree | 7b7208c1aed0d48e67f83774990adfd9e55fa353 | |
parent | 30f1fdd36559899dcd53d0620b1a0c4e7cebdc29 (diff) | |
download | slacknetsetup-6d9819e53e571df0b657fa12535290f59c031113.tar.xz |
rc.inet1: fix index number usage in virtual interface setup/destroy
-rw-r--r-- | rc.inet1 | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |