]> git.ipfire.org Git - people/arne_f/network.git/commitdiff
network: Initialize bonding at start.
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 10 Jul 2010 18:07:59 +0000 (20:07 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 10 Jul 2010 18:07:59 +0000 (20:07 +0200)
functions.bonding

index a63289269a8d169aad4ad85b8dafbb93679a1954..74a4d09d94d5eec2960fa19682be6124b2c106d5 100644 (file)
@@ -27,13 +27,12 @@ function bonding_init() {
        fi
 }
 
+init_register bonding_init
+
 function bonding_create() {
        local device=${1}
        local mac=${2}
 
-       # Make sure the bonding is initialized
-       bonding_init
-
        [ -z "${mac}" ] && mac=$(mac_generate)
 
        log INFO "Creating bonding device '${device}' (${mac})."