Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    NUT Custom devd Rule

    Scheduled Pinned Locked Moved pfSense Packages
    4 Posts 2 Posters 976 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      scolby33
      last edited by scolby33

      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 remains 0x09ae, but usbconfig now reports idProduct = 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?

      1 Reply Last reply Reply Quote 2
      • D
        dereitz
        last edited by

        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!

        1 Reply Last reply Reply Quote 0
        • D
          dereitz
          last edited by

          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!

          D 1 Reply Last reply Reply Quote 0
          • D
            dereitz @dereitz
            last edited by

            Two steps to do this without a reboot:

            1. /etc/rc.d/devd restart
            2. Physically unplug and plugin the USB cable from the UPS
            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.