File: README.adoc

package info (click to toggle)
nut 2.8.3-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 24,356 kB
  • sloc: ansic: 123,904; sh: 14,718; cpp: 12,558; makefile: 5,212; python: 1,114; perl: 855; xml: 47
file content (49 lines) | stat: -rw-r--r-- 1,748 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
Udev script for NUT USB and IPMI drivers
========================================
Arnaud Quette <aquette.dev@gmail.com>
v1.0, 31 July 2014 (start date)

This document introduces the Linux `udev` script for NUT USB drivers
(`usbhid-ups`, `nutdrv_qx`, `bcmxcp_usb`, `tripplite_usb`, ...) and
IPMI driver (`nut-ipmipsu`).

These are needed on Linux systems running `udev` (recommended as of Linux
kernel 2.6.3, and mandatory as of 2.6.14 and higher).

This script ensures that the right privileges are set on the USB and IPMI
device nodes to allow the NUT driver to operate (i.e. allowing the `nut`
user to read AND write to the hardware device).

Note that the old style `hotplug` files, available in the `scripts/hotplug`
directory, are not needed anymore if your kernel supports `udev`.

Installation
------------

For most users, these files will be automatically installed in `/etc/udev`
(or `/lib/udev`) upon `make install`, if that directory exists and if the
feature (USB and/or IPMI driver support) has been enabled at `configure` time.

You can specify an alternate directory with:
----
:; ./configure --with-udev-dir=DIR
----

Manual installation
-------------------

To install them manually, copy the rules file(s) to `/etc/udev/rules.d`
(or `/lib/udev/rules.d` on newer systems) using the following command(s):
----
:; cp -f nut-usbups.rules /etc/udev/rules.d/62-nut-usbups.rules
:; cp -f nut-ipmipsu.rules /etc/udev/rules.d/52-nut-ipmipsu.rules
----

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
----

For USB devices, you can then plug your UPS USB cord, or unplug/re-plug
it to refresh the device permission, and start NUT.