summaryrefslogtreecommitdiffstats
path: root/src/connections/bond
diff options
context:
space:
mode:
authorRémy Oudompheng <remy@archlinux.org>2011-08-20 13:45:46 +0200
committerRémy Oudompheng <remy@archlinux.org>2011-08-20 13:45:46 +0200
commitf7f24e6bdfa2ad5802557200e4c0184dd8e16115 (patch)
tree43665c377e1e4d74aec59f0d5703efb9706c297c /src/connections/bond
parent67106550f8a0255ae57a8a35a8ad62e47df07caf (diff)
downloadnetctl-f7f24e6bdfa2ad5802557200e4c0184dd8e16115.tar.gz
netctl-f7f24e6bdfa2ad5802557200e4c0184dd8e16115.tar.xz
bond: add example, fix missing quotes and typo
Signed-off-by: Rémy Oudompheng <remy@archlinux.org>
Diffstat (limited to 'src/connections/bond')
-rw-r--r--src/connections/bond6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/connections/bond b/src/connections/bond
index 6ba463e..ea6af77 100644
--- a/src/connections/bond
+++ b/src/connections/bond
@@ -14,8 +14,8 @@ bond_up() {
bring_interface up "$INTERFACE"
"$CONN_DIR/ethernet" up "$1"
- for slave in ${SLAVE_INTERFACES[@]}; do
- bring_interface up "$INTERFACE"
+ for slave in "${SLAVE_INTERFACES[@]}"; do
+ bring_interface up "$slave"
$IFENSLAVE $INTERFACE $slave
done
@@ -25,7 +25,7 @@ bond_up() {
bond_down() {
load_profile "$1"
- for slave in ${SLAVE_INTERFACES[@]}; do
+ for slave in "${SLAVE_INTERFACES[@]}"; do
$IFENSLAVE $INTERFACE -d $slave
done