[Nut-upsuser] trying to use powerware 3110 USB with NUT
John H.
mistamaila at gmail.com
Wed Oct 5 15:31:20 UTC 2005
who said i did not have hotplug files?
cat usbups.usermap
# usb module match_flags idVendor idProduct bcdDevice_lo
bcdDevice_hi bDeviceClass bDeviceSubClass bDeviceProtocol
bInterfaceClass bInterfaceSubClass bInterfaceProtocol driver_info
# Powerware USB
usbups 0x0003 0x06da 0x0002 0 0 0 0 0x00 0x00 0x00 0x00 0x00000000
cat usbups
#!/bin/bash
# Implementation by Wolfgang Ocker
#
# /etc/hotplug/usb/usbups
#
# Sets up newly plugged in USB USP
#
# In the usermap file, the first field "usb module" should be named
# "usbups" like this script.
#
echo usbups: device = $DEVICE >>/tmp/usb.log
NUTOWNER=nut
if [ "${ACTION}" = "add" ] && [ -f "${DEVICE}" ]
then
chmod 0000 "${DEVICE}"
chown "$NUTOWNER" "${DEVICE}"
chmod 0644 "${DEVICE}"
fi
On 10/5/05, Arnaud Quette <aquette.dev at gmail.com> wrote:
> As Kjell stated, the hoptlug files are mandatory!
>
>
> > On 10/3/05, Kjell Claesson <kjell.claesson at telia.com > wrote:
> > ...
> > >
> 8<----------------------------------------------------------------
> > > INSTALLATION
> > > This driver is not built by default. You can build it by using
> > > "make usb", and install it using "make install-usb". Note that
> > > it will also install other USB drivers.
> > > You also need to install manually the hotplug files (libhidups
> > > and libhid.usermap), generally in etc/hotplug/usb/, to address
> > > the permission settings problem. Lastly note that the libhidups
> > > file must have execution flag set (ie using chmod +x ...).
> > > --snip---
> Arnaud
> --
> Linux / Unix Expert - MGE UPS SYSTEMS - R&D Dpt
> Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/
> Debian Developer - http://people.debian.org/~aquette/
> OpenSource Developer - http://arnaud.quette.free.fr/
More information about the Nut-upsuser
mailing list