Hello, I have multiple printers and got them working by running additional p910d instances. However in the event of a power failure or a printer being unplugged and plugged back the printers ports get changed is there any way to get the port assigned to the same printer every time?
Just so you guys know I am running off of 2 Linksys E3000s TomatoUSB build 54 the E3000 VPN firmware
I am far from linux savvy but a friend has been trying to help with a script that still isn't working but maybe someone who is linux savvy could get what he was trying to accomplish. He says he was trying to create a new dev file based on product id and then point p910nd to the new dev file, USB Hotplug script below.
- process printers only
if [ "$INTERFACE" = "7/1/2" ]; then
DEV=`ls -d /sys/bus/usb/devices/$DEVICENAME/usb\:lp* | sed -e "s,/sys/bus/usb/devices/$DEVICENAME/usb:,,"`
echo "$ACTION Device: $DEV Product: $PRODUCT with Interface: $INTERFACE" » /var/log/hotplug
# Brother DCP-7020
if [ "$PRODUCT" = "4f9/183/100" ]; then
# HP Deskjet 7600
if [ "$PRODUCT" = "3f0/b202/100" ]; then
case "$ACTION" in
echo "$ACTION: Link /dev/usb/$DEV to /dev/$NAME" » /var/log/hotplug
if [ -f /dev/usb/"$DEV" -n "$NAME"]; then
ln -s /dev/usb/$DEV /dev/$NAME
echo "$ACTION: Remove /dev/$NAME" » /var/log/hotplug