From: Michael Tremer Date: Sun, 27 May 2012 13:42:42 +0000 (+0000) Subject: Don't load bonding driver by default. X-Git-Tag: 004~68 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=065a1bd13e21661c044cada5342846ff6577b0f8;p=network.git Don't load bonding driver by default. The kernel module will be initialized when the first bonding device is created. --- 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