xref: /freebsd/sbin/devd/dhclient.conf (revision f4d9116de1dadc26d35302e1c5eb125e7de30db1)
1*f4d9116dSEmmanuel Vadot#
2*f4d9116dSEmmanuel Vadot# Try to start dhclient on Ethernet-like interfaces when the link comes
3*f4d9116dSEmmanuel Vadot# up.  Only devices that are configured to support DHCP will actually
4*f4d9116dSEmmanuel Vadot# run it.  No link down rule exists because dhclient automatically exits
5*f4d9116dSEmmanuel Vadot# when the link goes down.
6*f4d9116dSEmmanuel Vadot#
7*f4d9116dSEmmanuel Vadotnotify 0 {
8*f4d9116dSEmmanuel Vadot	match "system"		"IFNET";
9*f4d9116dSEmmanuel Vadot	match "type"		"LINK_UP";
10*f4d9116dSEmmanuel Vadot	media-type		"ethernet";
11*f4d9116dSEmmanuel Vadot	action "service dhclient quietstart $subsystem";
12*f4d9116dSEmmanuel Vadot};
13*f4d9116dSEmmanuel Vadot
14*f4d9116dSEmmanuel Vadotnotify 0 {
15*f4d9116dSEmmanuel Vadot	match "system"		"IFNET";
16*f4d9116dSEmmanuel Vadot	match "type"		"LINK_UP";
17*f4d9116dSEmmanuel Vadot	media-type		"802.11";
18*f4d9116dSEmmanuel Vadot	action "service dhclient quietstart $subsystem";
19*f4d9116dSEmmanuel Vadot};
20