summaryrefslogtreecommitdiff
path: root/etc/udev/gentoo/95-net.rules
diff options
context:
space:
mode:
Diffstat (limited to 'etc/udev/gentoo/95-net.rules')
-rw-r--r--etc/udev/gentoo/95-net.rules15
1 files changed, 15 insertions, 0 deletions
diff --git a/etc/udev/gentoo/95-net.rules b/etc/udev/gentoo/95-net.rules
new file mode 100644
index 0000000000..182e8738f6
--- /dev/null
+++ b/etc/udev/gentoo/95-net.rules
@@ -0,0 +1,15 @@
+# /etc/udev/rules/95-net.rules: device naming rules for udev
+#
+# Gentoo specific rules
+#
+# There are a number of modifiers that are allowed to be used in some of the
+# fields. See the udev man page for a full description of them.
+#
+# Try not to modify this file, if you wish to change things, create a new rule
+# file that can be run before this one.
+#
+
+# Activate our network if we can
+SUBSYSTEM=="net", ACTION=="add", RUN+="net.sh %k start", OPTIONS="last_rule"
+SUBSYSTEM=="net", ACTION=="remove", RUN+="net.sh %k stop", OPTIONS="last_rule"
+