Changeset View
Changeset View
Standalone View
Standalone View
sbin/devd/devd.conf
Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Lines | |||||
notify 0 { | notify 0 { | ||||
match "system" "IFNET"; | match "system" "IFNET"; | ||||
match "subsystem" "!(usbus|wlan)[0-9]+"; | match "subsystem" "!(usbus|wlan)[0-9]+"; | ||||
match "type" "ATTACH"; | match "type" "ATTACH"; | ||||
action "/etc/pccard_ether $subsystem start"; | action "/etc/pccard_ether $subsystem start"; | ||||
}; | }; | ||||
# | # | ||||
# Try to start dhclient on Ethernet-like interfaces when the link comes | # Try to start DHCP client on Ethernet-like interfaces when the link comes | ||||
# up. Only devices that are configured to support DHCP will actually | # up. Only devices that are configured to support DHCP will actually | ||||
# run it. No link down rule exists because dhclient automatically exits | # run it. | ||||
# when the link goes down. | |||||
# | # | ||||
notify 0 { | notify 0 { | ||||
match "system" "IFNET"; | match "system" "IFNET"; | ||||
match "type" "LINK_UP"; | match "type" "LINK_UP"; | ||||
media-type "ethernet"; | media-type "ethernet"; | ||||
action "service dhclient quietstart $subsystem"; | action "service dhcp_client quietstart $subsystem"; | ||||
}; | }; | ||||
notify 0 { | |||||
match "system" "IFNET"; | |||||
match "type" "LINK_DOWN"; | |||||
action "service dhcp_client quietstop $subsystem"; | |||||
}; | |||||
# | # | ||||
# Like Ethernet devices, but separate because 802.11 require spawning | # Like Ethernet devices, but separate because 802.11 require spawning | ||||
# wlan(4) interface. | # wlan(4) interface. | ||||
# | # | ||||
attach 0 { | attach 0 { | ||||
device-name "$wifi-driver-regex"; | device-name "$wifi-driver-regex"; | ||||
action "/etc/pccard_ether $device-name startchildren"; | action "/etc/pccard_ether $device-name startchildren"; | ||||
}; | }; | ||||
detach 0 { | detach 0 { | ||||
device-name "$wifi-driver-regex"; | device-name "$wifi-driver-regex"; | ||||
action "/etc/pccard_ether $device-name stopchildren"; | action "/etc/pccard_ether $device-name stopchildren"; | ||||
}; | }; | ||||
notify 0 { | notify 0 { | ||||
match "system" "IFNET"; | match "system" "IFNET"; | ||||
match "type" "LINK_UP"; | match "type" "LINK_UP"; | ||||
media-type "802.11"; | media-type "802.11"; | ||||
action "service dhclient quietstart $subsystem"; | action "service dhcp_client quietstart $subsystem"; | ||||
}; | }; | ||||
# An entry like this might be in a different file, but is included here | # 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 | # as an example of how to override things. Normally 'ed50' would match | ||||
# the above attach/detach stuff, but the value of 100 makes it | # the above attach/detach stuff, but the value of 100 makes it | ||||
# hard wired to 1.2.3.4. | # hard wired to 1.2.3.4. | ||||
attach 100 { | attach 100 { | ||||
device-name "ed50"; | device-name "ed50"; | ||||
▲ Show 20 Lines • Show All 200 Lines • Show Last 20 Lines |