Gentoo Archives: gentoo-commits

From: William Hubbs <williamh@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/openrc:master commit in: net/
Date: Fri, 30 Dec 2011 00:12:08
Message-Id: 759f4ca4f2a7ee6be9ed13e7fd3fcd9cce44d865.WilliamH@gentoo
1 commit: 759f4ca4f2a7ee6be9ed13e7fd3fcd9cce44d865
2 Author: William Hubbs <williamh <AT> gentoo <DOT> org>
3 AuthorDate: Fri Dec 30 00:00:25 2011 +0000
4 Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
5 CommitDate: Fri Dec 30 00:00:25 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=759f4ca4
7
8 net: remove _check_macvlan function
9
10 This test is incorrect, and we do not need the modprobe. If macvlan is a
11 module, it is automatically modprobed when the first macvlan link is
12 added. Also, the /sys directory referred to in the test does not exist
13 if macvlan is built into the kernel.
14
15 Reported-by: Marien Zwart <marienz <AT> gentoo.org>
16 X-Gentoo-Bug: 396427
17 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=396427
18
19 ---
20 net/macvlan.sh | 13 -------------
21 1 files changed, 0 insertions(+), 13 deletions(-)
22
23 diff --git a/net/macvlan.sh b/net/macvlan.sh
24 index b8a8ffa..fb5fcdb 100644
25 --- a/net/macvlan.sh
26 +++ b/net/macvlan.sh
27 @@ -24,17 +24,6 @@ _is_macvlan()
28 [ -n "$(export RC_SVCNAME="net.${IFACE}"; service_get_value macvlan)" ]
29 }
30
31 -_check_macvlan()
32 -{
33 - if [ ! -d /sys/module/macvlan ]; then
34 - modprobe macvlan
35 - if [ ! -d /sys/module/macvlan ]; then
36 - eerror "MAC-VLAN support is not present in this kernel"
37 - return 1
38 - fi
39 - fi
40 -}
41 -
42 macvlan_pre_start()
43 {
44 # MAC-VLAN needs an existing interface to link to
45 @@ -42,8 +31,6 @@ macvlan_pre_start()
46 eval macvlan=\$macvlan_${IFVAR}
47 [ -z "${macvlan}" ] && return 0
48
49 - _check_macvlan || return 1
50 -
51 case " ${MODULES} " in
52 *" ifconfig "*)
53 eerror "sys-apps/iproute2 is required to configure MACVLANs"