summaryrefslogtreecommitdiffstats
path: root/rc.inet1
diff options
context:
space:
mode:
Diffstat (limited to 'rc.inet1')
-rw-r--r--rc.inet14
1 files changed, 2 insertions, 2 deletions
diff --git a/rc.inet1 b/rc.inet1
index 55ac726..60116d0 100644
--- a/rc.inet1
+++ b/rc.inet1
@@ -189,8 +189,8 @@ bond_create() {
info_log "${IFNAME[$1]}: creating bond"
debug_log "/sbin/ip link add name ${IFNAME[$1]} type bond"
/sbin/ip link add name ${IFNAME[$1]} type bond
- debug_log "/sbin/ip link set dev ${IFNAME[$1]} type bond mode ${BONDMODE[$1]}"
- /sbin/ip link set dev ${IFNAME[$1]} type bond mode ${BONDMODE[$1]}
+ debug_log "/sbin/ip link set dev ${IFNAME[$1]} type bond mode ${BONDMODE[$1]:-balance-rr}"
+ /sbin/ip link set dev ${IFNAME[$1]} type bond mode ${BONDMODE[$1]:-balance-rr}
for BONDIF in ${BONDNICS[$1]}; do
debug_log "/sbin/ip address flush dev $BONDIF"
/sbin/ip address flush dev $BONDIF