My system is driving a number of USB printers. The issue is that these printers nodes aren't fixed: they appear with different nodes, depending on what else is turned on.
The only partial fix is something like this in a /etc/devd.conf (or a local config file in /usr/local/etc/devd/). It creates a fixed link to the device in /dev.
This doesn't quite work for me: One of my printers needs to connect to /dev/unlptn, the non-resetting node. If I connect to /ulptn, I lose the last part of the first print when the second print causes the printer to reset. I can't see how to get devd to link to the unlpt device node. I tried to use the sh ${device-name#ulpt} to get just the number, but it looks like devd didn't understand it. Do I really have to get messy - call a script that can understand ${#}? I also don't know how happy CUPS will be connecting through a symlink.
Does anyone have a solution? The best solution would be to be able to reserve a u[n]lpt node for a named device, but I do not know if there is a way to do that.
The only partial fix is something like this in a /etc/devd.conf (or a local config file in /usr/local/etc/devd/). It creates a fixed link to the device in /dev.
Code:
attach 100 {
match "vendor" "0x04a9";
match "product" "0x1051";
action "ln -s /dev/$device-name /dev/canon";
};
Does anyone have a solution? The best solution would be to be able to reserve a u[n]lpt node for a named device, but I do not know if there is a way to do that.