Hello,
I have a 3g dongle which creates cuaU0.0 and cuaU0.1 entries when it is attached. On re-attaching the device it will make cuaU1.0 and cuaU1.1. I want to make permanent entries for these device nodes. Unfortunately, the following doesnt work,
How can I have two entries made with devd?
I have a 3g dongle which creates cuaU0.0 and cuaU0.1 entries when it is attached. On re-attaching the device it will make cuaU1.0 and cuaU1.1. I want to make permanent entries for these device nodes. Unfortunately, the following doesnt work,
Code:
# cat /usr/local/etc/devd/e3372h.conf
#12d1:1506
attach 20 {
match "vendor" "0x12d1";
match "product" "0x1506";
action "ln -sf /dev/cua$ttyname /dev/controller1";
};
detach 20 {
device-name "ugen[0-9].[0-9]";
match "vendor" "0x12d1";
match "product" "0x1506";
action "rm -rf /dev/controller1";
};
# ls -la /dev/controller1
lrwxr-xr-x 1 root wheel 8 Jul 22 10:34 /dev/controller1 -> /dev/cua
How can I have two entries made with devd?