diff options
| author | Brooks Davis <brooks@FreeBSD.org> | 2005-06-07 04:49:12 +0000 |
|---|---|---|
| committer | Brooks Davis <brooks@FreeBSD.org> | 2005-06-07 04:49:12 +0000 |
| commit | 8e9e71f817288aaaf232546f52d7cf14f79c4760 (patch) | |
| tree | 5b737af62b38f4124fab3c80ff903dbb7a8a0a1d /etc/devd.conf | |
| parent | 43c56a9bd97691f2a6d9a920689769f8c8166db6 (diff) | |
Notes
Diffstat (limited to 'etc/devd.conf')
| -rw-r--r-- | etc/devd.conf | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/etc/devd.conf b/etc/devd.conf index 064658514840..6968a8b8daeb 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 |
