[Glibc-bsd-commits] r3507 - in trunk/freebsd-utils/debian: . local local/devd
Robert Millan
rmh at alioth.debian.org
Wed Jun 29 14:12:42 UTC 2011
Author: rmh
Date: 2011-06-29 14:12:42 +0000 (Wed, 29 Jun 2011)
New Revision: 3507
Added:
trunk/freebsd-utils/debian/local/devd/
trunk/freebsd-utils/debian/local/devd/debian.conf
Modified:
trunk/freebsd-utils/debian/changelog
trunk/freebsd-utils/debian/freebsd-utils.install
Log:
Add network attach/detach devd event handlers to support allow-hotplug stanzas in /etc/network/interfaces.
Modified: trunk/freebsd-utils/debian/changelog
===================================================================
--- trunk/freebsd-utils/debian/changelog 2011-06-29 14:08:58 UTC (rev 3506)
+++ trunk/freebsd-utils/debian/changelog 2011-06-29 14:12:42 UTC (rev 3507)
@@ -4,8 +4,10 @@
HEAD, or otherwise empty variables act as catch-all rules. Getting
rid of autogeneration since upstream doesn't seem interested in using
devd variables anyway (see PR 157903).
+ * Add network attach/detach devd event handlers to support allow-
+ hotplug stanzas in /etc/network/interfaces.
- -- Robert Millan <rmh at debian.org> Wed, 29 Jun 2011 15:30:54 +0200
+ -- Robert Millan <rmh at debian.org> Wed, 29 Jun 2011 16:12:02 +0200
freebsd-utils (8.2+ds1-1) unstable; urgency=low
Modified: trunk/freebsd-utils/debian/freebsd-utils.install
===================================================================
--- trunk/freebsd-utils/debian/freebsd-utils.install 2011-06-29 14:08:58 UTC (rev 3506)
+++ trunk/freebsd-utils/debian/freebsd-utils.install 2011-06-29 14:12:42 UTC (rev 3507)
@@ -35,6 +35,7 @@
sbin/devd/devd /sbin
etc/devd.conf /etc
etc/devd/*.conf /etc/devd
+debian/local/devd/*.conf /etc/devd
sbin/devfs/devfs /sbin
usr.sbin/acpi/acpiconf/acpiconf /usr/sbin
Added: trunk/freebsd-utils/debian/local/devd/debian.conf
===================================================================
--- trunk/freebsd-utils/debian/local/devd/debian.conf (rev 0)
+++ trunk/freebsd-utils/debian/local/devd/debian.conf 2011-06-29 14:12:42 UTC (rev 3507)
@@ -0,0 +1,22 @@
+#
+# Debian-specific event handlers for devd.
+#
+
+# These events are triggered when a network device is physically
+# plugged to (or unplugged from) the system.
+#
+# If you want devd to react to network link events instead (i.e.
+# like network-manager), replace ATTACH with LINK_UP and DETACH
+# with LINK_DOWN.
+
+notify 10 {
+ match "system" "IFNET";
+ match "type" "ATTACH";
+ action "ifup --allow=hotplug $subsystem";
+};
+
+notify 10 {
+ match "system" "IFNET";
+ match "type" "DETACH";
+ action "ifdown --allow=hotplug $subsystem";
+};
More information about the Glibc-bsd-commits
mailing list