1 |
zzam 08/10/09 08:56:43 |
2 |
|
3 |
Added: net-130-r1.sh |
4 |
Log: |
5 |
Ignore events of br-devices to not get a loop of uevents/init-script calls, Bug #239239. |
6 |
(Portage version: 2.2_rc11/cvs/Linux 2.6.25-tuxonice-r6 i686) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 sys-fs/udev/files/net-130-r1.sh |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/udev/files/net-130-r1.sh?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/udev/files/net-130-r1.sh?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: net-130-r1.sh |
15 |
=================================================================== |
16 |
#!/bin/sh |
17 |
# |
18 |
# net.sh: udev external RUN script |
19 |
# |
20 |
# Copyright 2007 Roy Marples <uberlord@g.o> |
21 |
# Distributed under the terms of the GNU General Public License v2 |
22 |
|
23 |
IFACE=$1 |
24 |
ACTION=$2 |
25 |
|
26 |
SCRIPT=/etc/init.d/net.$IFACE |
27 |
|
28 |
# ignore interfaces that are registered after being "up" (?) |
29 |
case ${IFACE} in |
30 |
ppp*|ippp*|isdn*|plip*|lo*|irda*|dummy*|ipsec*|tun*|tap*|br*) |
31 |
exit 0 ;; |
32 |
esac |
33 |
|
34 |
# stop here if coldplug is disabled, Bug #206518 |
35 |
if [ "${do_not_run_plug_service}" = 1 ]; then |
36 |
exit 0 |
37 |
fi |
38 |
|
39 |
if [ ! -x "${SCRIPT}" ] ; then |
40 |
#do not flood log with messages, bug #205687 |
41 |
#logger -t udev-net.sh "${SCRIPT}: does not exist or is not executable" |
42 |
exit 1 |
43 |
fi |
44 |
|
45 |
# If we're stopping then sleep for a bit in-case a daemon is monitoring |
46 |
# the interface. This to try and ensure we stop after they do. |
47 |
[ "${ACTION}" == "stop" ] && sleep 2 |
48 |
|
49 |
IN_HOTPLUG=1 "${SCRIPT}" --quiet "${ACTION}" |