summaryrefslogtreecommitdiffstats
path: root/etc/devd.conf
diff options
context:
space:
mode:
authorbrooks <brooks@FreeBSD.org>2005-06-07 04:49:12 +0000
committerbrooks <brooks@FreeBSD.org>2005-06-07 04:49:12 +0000
commit5a3d620fb15161572eed8cb406ccb6672fd2f93c (patch)
tree5b737af62b38f4124fab3c80ff903dbb7a8a0a1d /etc/devd.conf
parent9a851b1b815c8f75342aef3c3bdd9d7943045a0d (diff)
downloadFreeBSD-src-5a3d620fb15161572eed8cb406ccb6672fd2f93c.zip
FreeBSD-src-5a3d620fb15161572eed8cb406ccb6672fd2f93c.tar.gz
Support code for the OpenBSD dhclient. This significantly changes the
way interfaces are configured. Some key points: - At startup, all interfaces are configured through /etc/rc.d/netif. - ifconfig_<if> variables my now mix real ifconfig commands the with DHCP and WPA directives. For example, this allows media configuration prior to running dhclient. - /etc/rc.d/dhclient is not run at startup except by netif to start dhclient on specific interfaces. - /etc/pccard_ether calls "/etc/rc.d/netif start <if>" to do most of it's work. - /etc/pccard_ether no longer takes additional arguments to pass to ifconfig. Instead, ifconfig_<if> variables are now honored in favor of pccard_ifconfig when available. - /etc/pccard_ether will only run on interfaces specified in removable_interfaces, even if pccard_ifconfig is set.
Diffstat (limited to 'etc/devd.conf')
-rw-r--r--etc/devd.conf15
1 files changed, 14 insertions, 1 deletions
diff --git a/etc/devd.conf b/etc/devd.conf
index 0646585..6968a8b 100644
--- a/etc/devd.conf
+++ b/etc/devd.conf
@@ -32,7 +32,7 @@ options {
# override these general rules.
#
-# For ethernet like devices, the default is to run dhclient. Due to
+# For ethernet like devices start configuring the interface. Due to
# a historical accident, this script is called pccard_ether.
#
attach 0 {
@@ -45,6 +45,19 @@ detach 0 {
action "/etc/pccard_ether $device-name stop";
};
+#
+# Try to start dhclient on Ethernet like interfaces when the link comes
+# up. Only devices that are configured to support DHCP will actually
+# run it. No link down rule exists because dhclient automaticly exits
+# when the link goes down.
+#
+notify 0 {
+ match "system" "IFNET";
+ match "subsystem" "$ethernet-nic-regex";
+ match "type" "LINK_UP";
+ action "/etc/rc.d/dhclient start $subsystem";
+};
+
# An entry like this might be in a different file, but is included here
# as an example of how to override things. Normally 'ed50' would match
# the above attach/detach stuff, but the value of 100 makes it
OpenPOWER on IntegriCloud