Commit 5b1e5887 authored by Natanael Copa's avatar Natanael Copa

main/vlan: load kernel module 8021q if needed

fixes #1212
(cherry picked from commit 98832700)
parent 9ec58f19
......@@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=vlan
pkgver=1.9
pkgrel=0
pkgrel=1
pkgdesc="Scripts for configuring VLAN network interfaces"
url="http://wiki.alpinelinux.org/wiki/Vlan"
arch="noarch"
......@@ -44,4 +44,4 @@ package() {
md5sums="3683be24d1fc1d8565e945c349c41571 mvlan.post-down
5b6232674e83b0dbfc24af523dd5ec03 mvlan.pre-up
cebaa97c933ed0f4cafd92f864ab4bc8 vlan.post-down
c9acef8c17d8af19590767f57eb11b6b vlan.pre-up"
53378ae34ad2f475901bb43049a6c146 vlan.pre-up"
......@@ -4,6 +4,9 @@ do_vlan_config() {
local id="$2"
local newname="$3"
local nametype="$4"
if ! [ -d /proc/net/vlan ]; then
modprobe 8021q
fi
vconfig set_name_type ${nametype}
vconfig add ${device} ${id}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment