From 065a1bd13e21661c044cada5342846ff6577b0f8 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sun, 27 May 2012 13:42:42 +0000 Subject: [PATCH] Don't load bonding driver by default. The kernel module will be initialized when the first bonding device is created. --- functions.bonding | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/functions.bonding b/functions.bonding index 9c80767c..87ce5d76 100644 --- a/functions.bonding +++ b/functions.bonding @@ -27,14 +27,16 @@ function bonding_init() { fi } -init_register bonding_init - function bonding_create() { local device=${1} local mac=${2} [ -z "${mac}" ] && mac=$(mac_generate) + # Initialize the bonding driver just + # when we need it. + bonding_init + log INFO "Creating bonding device '${device}' (${mac})." echo "+${device}" > /sys/class/net/bonding_masters -- 2.47.3