]> git.ipfire.org Git - network.git/commitdiff
Don't load bonding driver by default.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 27 May 2012 13:42:42 +0000 (13:42 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 27 May 2012 13:42:42 +0000 (13:42 +0000)
The kernel module will be initialized when the first
bonding device is created.

functions.bonding

index 9c80767cf83e5548bce8cb0439cc7ed3b6bb3ff4..87ce5d76124ab73653f71b4b0a3e15114e8e1a0c 100644 (file)
@@ -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