Lines 8-19
Link Here
|
8 |
# NB: device-name is shorthand for 'match device-name' |
8 |
# NB: device-name is shorthand for 'match device-name' |
9 |
|
9 |
|
10 |
options { |
10 |
options { |
|
|
11 |
set localbase "/usr/local"; |
12 |
|
11 |
# Each directory directive adds a directory the list of directories |
13 |
# Each directory directive adds a directory the list of directories |
12 |
# that we scan for files. Files are read-in in the order that they |
14 |
# that we scan for files. Files are read-in in the order that they |
13 |
# are returned from readdir(3). The rule-sets are combined to |
15 |
# are returned from readdir(3). The rule-sets are combined to |
14 |
# create a DFA that's used to match events to actions. |
16 |
# create a DFA that's used to match events to actions. |
15 |
directory "/etc/devd"; |
17 |
directory "/etc/devd"; |
16 |
directory "/usr/local/etc/devd"; |
18 |
directory "$localbase/etc/devd"; |
17 |
pid-file "/var/run/devd.pid"; |
19 |
pid-file "/var/run/devd.pid"; |
18 |
|
20 |
|
19 |
# Setup some shorthand for regex that we use later in the file. |
21 |
# Setup some shorthand for regex that we use later in the file. |
Lines 101-107
Link Here
|
101 |
#attach 100 { |
103 |
#attach 100 { |
102 |
# match "vendor" "0x0cf3"; |
104 |
# match "vendor" "0x0cf3"; |
103 |
# match "product" "0x3000"; |
105 |
# match "product" "0x3000"; |
104 |
# action "sleep 2 && /usr/sbin/ath3kfw -d $device-name -f /usr/local/etc/ath3k-1.fw"; |
106 |
# action "sleep 2 && /usr/sbin/ath3kfw -d $device-name -f $localbase/etc/ath3k-1.fw"; |
105 |
#}; |
107 |
#}; |
106 |
|
108 |
|
107 |
# When a USB keyboard arrives, attach it as the console keyboard. |
109 |
# When a USB keyboard arrives, attach it as the console keyboard. |
Lines 131-137
Link Here
|
131 |
match "vendor" "0x0854"; |
133 |
match "vendor" "0x0854"; |
132 |
match "product" "0x0100"; |
134 |
match "product" "0x0100"; |
133 |
match "release" "0x0000"; |
135 |
match "release" "0x0000"; |
134 |
action "/usr/local/bin/ezdownload -f /usr/local/share/usb/firmware/0854.0100.0_01.hex $device-name"; |
136 |
action "$localbase/bin/ezdownload -f $localbase/share/usb/firmware/0854.0100.0_01.hex $device-name"; |
135 |
}; |
137 |
}; |
136 |
|
138 |
|
137 |
# Firmware download for Entrega Serial DB25 adapter. |
139 |
# Firmware download for Entrega Serial DB25 adapter. |
Lines 143-150
Link Here
|
143 |
}; |
145 |
}; |
144 |
|
146 |
|
145 |
# This entry starts the ColdSync tool in daemon mode. Make sure you have an up |
147 |
# This entry starts the ColdSync tool in daemon mode. Make sure you have an up |
146 |
# to date /usr/local/etc/palms. We override the 'listen' settings for port and |
148 |
# to date $localbase/etc/palms. We override the 'listen' settings for port and |
147 |
# type in /usr/local/etc/coldsync.conf. |
149 |
# type in $localbase/etc/coldsync.conf. |
148 |
notify 100 { |
150 |
notify 100 { |
149 |
match "system" "USB"; |
151 |
match "system" "USB"; |
150 |
match "subsystem" "DEVICE"; |
152 |
match "subsystem" "DEVICE"; |
Lines 152-158
Link Here
|
152 |
match "vendor" "0x082d"; |
154 |
match "vendor" "0x082d"; |
153 |
match "product" "0x0100"; |
155 |
match "product" "0x0100"; |
154 |
match "release" "0x0100"; |
156 |
match "release" "0x0100"; |
155 |
action "/usr/local/bin/coldsync -md -p /dev/$cdev -t usb"; |
157 |
action "$localbase/bin/coldsync -md -p /dev/$cdev -t usb"; |
156 |
}; |
158 |
}; |
157 |
|
159 |
|
158 |
# |
160 |
# |
Lines 267-273
Link Here
|
267 |
|
269 |
|
268 |
# The following might be an example of something that a vendor might |
270 |
# The following might be an example of something that a vendor might |
269 |
# install if you were to add their device. This might reside in |
271 |
# install if you were to add their device. This might reside in |
270 |
# /usr/local/etc/devd/deqna.conf. A deqna is, in this hypothetical |
272 |
# $localbase/etc/devd/deqna.conf. A deqna is, in this hypothetical |
271 |
# example, a pccard ethernet-like device. Students of history may |
273 |
# example, a pccard ethernet-like device. Students of history may |
272 |
# know other devices by this name, and will get the in-jokes in this |
274 |
# know other devices by this name, and will get the in-jokes in this |
273 |
# entry. |
275 |
# entry. |
Lines 320-326
Link Here
|
320 |
notify 0 { |
322 |
notify 0 { |
321 |
match "system" "RCTL"; |
323 |
match "system" "RCTL"; |
322 |
match "rule" "user:70:swap:.*"; |
324 |
match "rule" "user:70:swap:.*"; |
323 |
action "/usr/local/etc/rc.d/postgresql restart" |
325 |
action "$localbase/etc/rc.d/postgresql restart" |
324 |
}; |
326 |
}; |
325 |
|
327 |
|
326 |
*/ |
328 |
*/ |