diff --git a/sbin/devd/dhclient.conf b/sbin/devd/dhclient.conf --- a/sbin/devd/dhclient.conf +++ b/sbin/devd/dhclient.conf @@ -2,7 +2,8 @@ # 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 automatically exits -# when the link goes down. +# when the link goes down. bridge interfaces do not have defined media +# types to match against, so special case on subsystem match instead. # notify 0 { match "system" "IFNET"; @@ -17,3 +18,10 @@ media-type "802.11"; action "service dhclient quietstart $subsystem"; }; + +notify 0 { + match "system" "IFNET"; + match "subsystem" "bridge[0-9]+"; + match "type" "LINK_UP"; + action "service dhclient quietstart $subsystem"; +};