diff options
author | 2014-03-04 10:25:13 -0800 | |
---|---|---|
committer | 2014-03-04 10:25:13 -0800 | |
commit | 31acef83a5328bc14b5ebf6b6d132e6c4bdb336e (patch) | |
tree | d5d71ff2cecdc7d951e61802852ed1b848404888 /udev_rules | |
parent | Update credits. (diff) | |
download | netifrc-31acef83a5328bc14b5ebf6b6d132e6c4bdb336e.tar.gz netifrc-31acef83a5328bc14b5ebf6b6d132e6c4bdb336e.tar.bz2 netifrc-31acef83a5328bc14b5ebf6b6d132e6c4bdb336e.zip |
move udev rules from udev-init-scripts to netifrc
udev-init-scripts contains some rules to trigger network activation on
device creation. There are actually netifrc specific, so let's package
them instead.
X-Gentoo-Bug: 487922
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=487922#c4
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Diffstat (limited to 'udev_rules')
-rw-r--r-- | udev_rules/90-network.rules | 8 | ||||
-rw-r--r-- | udev_rules/Makefile | 11 |
2 files changed, 19 insertions, 0 deletions
diff --git a/udev_rules/90-network.rules b/udev_rules/90-network.rules new file mode 100644 index 0000000..50903af --- /dev/null +++ b/udev_rules/90-network.rules @@ -0,0 +1,8 @@ +# do not edit this file, it will be overwritten on update + +# /etc/udev/rules/90-network.rules: triggering network init-scripts + +# Activate our network if we can +SUBSYSTEM=="net", ACTION=="add", RUN+="net.sh %k start" +SUBSYSTEM=="net", ACTION=="remove", RUN+="net.sh %k stop" + diff --git a/udev_rules/Makefile b/udev_rules/Makefile new file mode 100644 index 0000000..f622ebc --- /dev/null +++ b/udev_rules/Makefile @@ -0,0 +1,11 @@ +DIR= ${UDEVDIR}/rules.d +SRCS= ${SRCS-${OS}} +INC= ${INC-${OS}} + +MK= ../mk +include ${MK}/os.mk + +SRCS-Linux= 90-network.rules +INC-Linux= 90-network.rules + +include ${MK}/scripts.mk |