From: Michael Tremer Date: Sun, 6 Aug 2017 12:29:41 +0000 (+0000) Subject: bonding: Cleanup loading of kernel module X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=36d04035093da2553c16e54b8cc36455d50176c5;p=people%2Fstevee%2Fnetwork.git bonding: Cleanup loading of kernel module Signed-off-by: Michael Tremer --- diff --git a/src/functions/functions.bonding b/src/functions/functions.bonding index 3375bdc7..490ac2e3 100644 --- a/src/functions/functions.bonding +++ b/src/functions/functions.bonding @@ -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}" \