Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 487922
Collapse All | Expand All

(-)file_not_specified_in_diff (-7 / +72 lines)
Line  Link Here
0
-- Makefile
0
++ Makefile
Lines 4-10 Link Here
4
4
5
include Makefile.inc
5
include Makefile.inc
6
6
7
SUBDIR =	doc init.d net sh
7
SUBDIR =	doc init.d net sh udev_helper udev_rules
8
8
9
INSTALLAFTER=	_installafter
9
INSTALLAFTER=	_installafter
10
10
11
-- mk/os-Linux.mk
11
++ mk/os-Linux.mk
Lines 3-8 Link Here
3
3
4
SFX=		.Linux.in
4
SFX=		.Linux.in
5
PKG_PREFIX?=	/usr
5
PKG_PREFIX?=	/usr
6
UDEVDIR?=	$(shell pkg-config udev --variable=udevdir)
6
7
7
CPPFLAGS+=	-D_BSD_SOURCE -D_XOPEN_SOURCE=700
8
CPPFLAGS+=	-D_BSD_SOURCE -D_XOPEN_SOURCE=700
8
LIBDL=		-Wl,-Bdynamic -ldl
9
LIBDL=		-Wl,-Bdynamic -ldl
9
-- udev_helper/Makefile
10
++ udev_helper/Makefile
Line 0 Link Here
0
-- udev_helper/net.sh
1
DIR=		${UDEVDIR}
2
SRCS=		${SRCS-${OS}}
3
BIN=		${BIN-${OS}}
4
5
MK=	../mk
6
include ${MK}/os.mk
7
8
SRCS-Linux=	net.sh
9
BIN-Linux=	net.sh
10
11
include ${MK}/scripts.mk
12
++ udev_helper/net.sh
Line 0 Link Here
0
-- udev_rules/90-network.rules
1
#!/bin/sh
2
#
3
# net.sh: udev external RUN script
4
#
5
# Copyright 2007 Roy Marples <uberlord@gentoo.org>
6
# Distributed under the terms of the GNU General Public License v2
7
8
IFACE=$1
9
ACTION=$2
10
11
SCRIPT=/etc/init.d/net.$IFACE
12
13
# ignore interfaces that are registered after being "up" (?)
14
case ${IFACE} in
15
	ppp*|ippp*|isdn*|plip*|lo*|irda*|dummy*|ipsec*|tun*|tap*|br*)
16
		exit 0 ;;
17
esac
18
19
# stop here if coldplug is disabled, Bug #206518
20
if [ "${do_not_run_plug_service}" = 1 ]; then
21
	exit 0
22
fi
23
24
if [ ! -x "${SCRIPT}" ] ; then
25
	#do not flood log with messages, bug #205687
26
	#logger -t udev-net.sh "${SCRIPT}: does not exist or is not executable"
27
	exit 1
28
fi
29
30
# If we're stopping then sleep for a bit in-case a daemon is monitoring
31
# the interface. This to try and ensure we stop after they do.
32
[ "${ACTION}" == "stop" ] && sleep 2
33
34
IN_HOTPLUG=1 "${SCRIPT}" --quiet "${ACTION}"
35
++ udev_rules/90-network.rules
Line 0 Link Here
0
-- udev_rules/Makefile
1
# do not edit this file, it will be overwritten on update
2
3
# /etc/udev/rules/90-network.rules:  triggering network init-scripts
4
5
# Activate our network if we can
6
SUBSYSTEM=="net", ACTION=="add",    RUN+="net.sh %k start"
7
SUBSYSTEM=="net", ACTION=="remove", RUN+="net.sh %k stop"
8
9
++ udev_rules/Makefile
Line 0 Link Here
1
DIR=		${UDEVDIR}/rules.d
2
SRCS=		${SRCS-${OS}}
3
INC=		${INC-${OS}}
4
5
MK=	../mk
6
include ${MK}/os.mk
7
8
SRCS-Linux=	90-network.rules
9
INC-Linux=	90-network.rules
10
11
include ${MK}/scripts.mk

Return to bug 487922