From 482ab321797f6fa169de2e9fa35f1bcce26ab98a Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sun, 27 May 2012 13:45:09 +0000 Subject: [PATCH] Don't load 8021q module when we don't need it. --- functions.virtual | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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}) -- 2.47.3