summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2013-03-11 19:40:35 +0100
committerJouke Witteveen <j.witteveen@gmail.com>2013-03-12 14:26:28 +0100
commita24839b747f152dbc7ddf8f21ebfa7aae474d13e (patch)
tree72dfd4c050efabe1a9de0f6b31d85d4c8b601afb /src/lib
parent002fd276527a9d14b01555f95107993ede465765 (diff)
downloadnetctl-a24839b747f152dbc7ddf8f21ebfa7aae474d13e.tar.gz
netctl-a24839b747f152dbc7ddf8f21ebfa7aae474d13e.tar.xz
connections/vlan: fix BindsToInterfaces length calculation
${#array[@]} requires "[@]" to count the array members. Otherwise it will return the length of the first element which will hardly ever be 1. Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/connections/vlan2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/connections/vlan b/src/lib/connections/vlan
index 86d1a2d..e5edf4a 100644
--- a/src/lib/connections/vlan
+++ b/src/lib/connections/vlan
@@ -3,7 +3,7 @@
. "$CONN_DIR/ethernet"
vlan_up() {
- if [[ ${#BindsToInterfaces} -ne 1 ]]; then
+ if [[ ${#BindsToInterfaces[@]} -ne 1 ]]; then
report_error "No unique physical device for VLAN interface '$Interface' specified"
return 1
fi