Lines 22-27
options {
Link Here
|
22 |
"(aac|adv|adw|aha|ahb|ahc|ahd|aic|amd|amr|asr|bt|ciss|ct|dpt|\ |
22 |
"(aac|adv|adw|aha|ahb|ahc|ahd|aic|amd|amr|asr|bt|ciss|ct|dpt|\ |
23 |
esp|ida|iir|ips|isp|mlx|mly|mpt|ncr|ncv|nsp|stg|sym|trm|wds)\ |
23 |
esp|ida|iir|ips|isp|mlx|mly|mpt|ncr|ncv|nsp|stg|sym|trm|wds)\ |
24 |
[0-9]+"; |
24 |
[0-9]+"; |
|
|
25 |
set wifi-driver-regex |
26 |
"(ath|bwi|bwn|ipw|iwi|iwn|malo|mwl|ral|rsu|rum|run|uath|upgt|\ |
27 |
ural|urtw|urtwn|wi|wpi|wtap|zyd)[0-9]+"; |
25 |
}; |
28 |
}; |
26 |
|
29 |
|
27 |
# Note that the attach/detach with the highest value wins, so that one can |
30 |
# Note that the attach/detach with the highest value wins, so that one can |
Lines 57-74
notify 0 {
Link Here
|
57 |
}; |
60 |
}; |
58 |
|
61 |
|
59 |
# |
62 |
# |
60 |
# Like Ethernet devices, but separate because |
63 |
# Like Ethernet devices, but separate because 802.11 require spawning |
61 |
# they have a different media type. We may want |
64 |
# wlan(4) interface. |
62 |
# to exploit this later. |
|
|
63 |
# |
65 |
# |
|
|
66 |
attach 0 { |
67 |
device-name "$wifi-driver-regex"; |
68 |
action "/etc/pccard_ether $device-name startchildren"; |
69 |
}; |
64 |
detach 0 { |
70 |
detach 0 { |
65 |
media-type "802.11"; |
71 |
device-name "$wifi-driver-regex"; |
66 |
action "/etc/pccard_ether $device-name stop"; |
72 |
action "/etc/pccard_ether $device-name stopchildren"; |
67 |
}; |
73 |
}; |
68 |
attach 0 { |
|
|
69 |
media-type "802.11"; |
70 |
action "/etc/pccard_ether $device-name start"; |
71 |
}; |
72 |
notify 0 { |
74 |
notify 0 { |
73 |
match "system" "IFNET"; |
75 |
match "system" "IFNET"; |
74 |
match "type" "LINK_UP"; |
76 |
match "type" "LINK_UP"; |