]> git.ipfire.org Git - people/ms/network.git/commitdiff
bonding: Cleanup loading of kernel module
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 6 Aug 2017 12:29:41 +0000 (12:29 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 6 Aug 2017 12:29:41 +0000 (12:29 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/functions/functions.bonding

index 3375bdc7ab71739382c7e170e865151dd910971e..490ac2e3aa591b49ced3acde2834130367a75a1e 100644 (file)
@@ -24,10 +24,6 @@ BONDING_ALLOWED_MODES="balance-rr active-backup balance-xor broadcast 802.3ad \
 BONDING_MASTERS="/sys/class/net/bonding_masters"
 BONDING_PORT_PATTERN="bN"
 
-bonding_init() {
-       module_load "bonding"
-}
-
 bonding_create() {
        local device=${1}
        assert isset device
@@ -65,9 +61,8 @@ bonding_create() {
                return ${EXIT_ERROR}
        fi
 
-       # Initialize the bonding driver just
-       # when we need it.
-       bonding_init
+       # Load the kernel module
+       module_load "bonding"
 
        # Create the bonding device
        if cmd ip link add "${device}" address "${address}" \