From: Michael Tremer Date: Sun, 27 May 2012 13:45:09 +0000 (+0000) Subject: Don't load 8021q module when we don't need it. X-Git-Tag: 004~67 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=482ab321797f6fa169de2e9fa35f1bcce26ab98a;p=network.git Don't load 8021q module when we don't need it. --- diff --git a/functions.virtual b/functions.virtual index e0ae39c0..5fed6944 100644 --- a/functions.virtual +++ b/functions.virtual @@ -34,8 +34,6 @@ function virtual_init() { EOF } -init_register virtual_init - function virtual_create() { local port=${1} local vid=${2} @@ -46,6 +44,9 @@ function virtual_create() { mac=$(mac_generate) fi + # Initialize the vlan drivers just when we need them. + virtual_init + log INFO "Creating virtual device '${newport}' with address '${mac}'." local oldport=$(virtual_get_by_parent_and_vid ${port} ${vid})