2011-09-29 18:14:46 +00:00
|
|
|
Desc: Udev script for NUT USB and IPMI drivers
|
2010-03-25 23:20:59 +00:00
|
|
|
File: scripts/udev/README
|
2015-04-30 13:53:36 +00:00
|
|
|
Date: 31 July 2014
|
2010-03-25 23:20:59 +00:00
|
|
|
Auth: Arnaud Quette <aquette.dev@gmail.com>
|
|
|
|
|
|
|
|
This document introduces the Linux udev script for NUT USB
|
2011-09-29 18:14:46 +00:00
|
|
|
drivers (usbhid-ups, bcmxcp_usb, tripplite_usb, ...) and IPMI driver
|
|
|
|
(nut-ipmipsu).
|
2010-03-25 23:20:59 +00:00
|
|
|
|
|
|
|
These are needed on Linux systems running udev (recommended
|
|
|
|
as of kernel 2.6.3, and mandatory as of 2.6.14 and higher).
|
|
|
|
|
|
|
|
This script ensure that the right privileges are set on the
|
2011-09-29 18:14:46 +00:00
|
|
|
USB and IPMI devices files to allow the NUT driver to operate (ie
|
|
|
|
allowing the nut user to read AND write to the device).
|
2010-03-25 23:20:59 +00:00
|
|
|
|
|
|
|
Note that the old style hotplug files, available in the
|
|
|
|
scripts/hotplug directory, are not needed if your kernel supports
|
|
|
|
udev.
|
|
|
|
|
|
|
|
Installation
|
|
|
|
------------
|
|
|
|
|
|
|
|
For most users, these files will be automatically installed in
|
2011-09-29 18:14:46 +00:00
|
|
|
/etc/udev (or /lib/udev) upon "make install", if that directory exists and if
|
|
|
|
the feature (USB and / or IPMI) has been enabled at configure time. You can
|
2010-03-25 23:20:59 +00:00
|
|
|
specify an alternate directory with ./configure --with-udev-dir=DIR.
|
|
|
|
|
|
|
|
Manual installation
|
|
|
|
-------------------
|
|
|
|
|
2011-09-29 18:14:46 +00:00
|
|
|
To install them manually, copy the rules file(s) to /etc/udev/rules.d
|
|
|
|
(or /lib/udev/rules.d on newer systems) using the command(s):
|
2010-03-25 23:20:59 +00:00
|
|
|
|
2015-04-30 13:53:36 +00:00
|
|
|
$ cp -f nut-usbups.rules /etc/udev/rules.d/62-nut-usbups.rules
|
2011-09-29 18:14:46 +00:00
|
|
|
$ cp -f nut-ipmipsu.rules /etc/udev/rules.d/52-nut-ipmipsu.rules
|
2010-03-25 23:20:59 +00:00
|
|
|
|
|
|
|
You will need to refresh the bus to avoid a reboot for these rules to be
|
|
|
|
active. You can do so using:
|
|
|
|
|
|
|
|
$ udevadm trigger --subsystem-match=usb_device
|
|
|
|
|
2011-09-29 18:14:46 +00:00
|
|
|
For USB devices, you can then plug your UPS USB cord, or unplug / replug
|
|
|
|
it to refresh the device permission, and start NUT.
|