NUT Custom devd Rule
-
I just installed NUT and configured it with a new Tripp Lite AVR750U. It seems that Tripp Lite has changed the product ID since the most recent release of NUT: the
idVendor
remains0x09ae
, but usbconfig now reportsidProduct = 0x3024
.I was able to force NUT to recognize the UPS with the option
productid=3024
in the "Extra Arguments to driver" field. However, NUT still did not start. Based on the discussion here and here, I decided to add a custom devd rule to fix the permissions on the device:$ cat /usr/local/etc/devd/nut-usb-custom.conf notify 100 { match "system" "USB"; match "subsystem" "DEVICE"; match "type" "ATTACH"; match "vendor" "0x09ae"; match "product" "0x3024"; # difference from default config here action "chgrp uucp /dev/$cdev; chmod g+rw /dev/$cdev"; };
Everything works now, but I am unsure if this is the proper place to put it. Is there a usual pattern for adding devd rules in pfSense?
-
A million times Thank You for this!!!! I'm an old school Linux guy, so it would have taken me forever to figure this out on FreeBSD if you hadn't posted this. Thank you, thank you, thank you!
-
One small thing for anyone that reads this in the future. I had to reboot for the above nut-usb-custom.conf to take effect. Perhaps there's an easier way, but that worked for me. Again thank you!
-
Two steps to do this without a reboot:
- /etc/rc.d/devd restart
- Physically unplug and plugin the USB cable from the UPS