* [Help] setting up hotplug for USB UPSs
@ 2003-01-18 15:22 Arnaud Quette
0 siblings, 0 replies; only message in thread
From: Arnaud Quette @ 2003-01-18 15:22 UTC (permalink / raw)
To: linux-hotplug
Hi there,
I'm currently trying to setup hotplug for USB UPSs
and have not yet succeeded :(
I'm running a Debian Sid (unstable) with:
- hotplug 2002_08_26
- hotplug-utils 2002_01_14
I'm first trying understand exactly how I
can handle userland software startup within
hotplug script. But with my below config,
nut script is never called :( Please, tell me
what's wrong...
The thing I'm not sure about is where to put
my files. usb.agent demands
/etc/hotplug/usb/ but seems to be searching
in /etc/hotplug/ ! I've tried both but fail.
Anybody has a small procedure (apart from
jphoto which was my example) or some
advice/help to give ?
Thanks,
Arnaud
1) /etc/hotplug/usb/usb.usermap:
nut 0x0080 0x0463 0x0001 0 0 0 0 0 0 0 0 0
nut 0x0080 0x0463 0xffff 0 0 0 0 0 0 0 0 0
2) /etc/hotplug/usb/nut:
#!/bin/sh
echo "dev = $DEVICE, prod = $PRODUCT, action = $ACTION" > /dev/pts/1
3) relaunched hotplug (/etc/init.d/hotplug restart)
4) unplug/replug device and tail on /var/log/syslog
>Jan 18 15:17:17 daneel kernel: hub.c: new USB device 00:01.3-1.4,
assigned address 4
>Jan 18 15:17:22 daneel kernel: hiddev0: USB HID v1.00 Device [MGE UPS
SYSTEMS Evolution] on usb1:4.0
>Jan 18 15:17:25 daneel /etc/hotplug/usb.agent: Setup hid for USB
product 463/1/1
But never calls nut !
-------------------------------------------------------
This SF.NET email is sponsored by: Thawte.com - A 128-bit supercerts will
allow you to extend the highest allowed 128 bit encryption to all your
clients even if they use browsers that are limited to 40 bit encryption.
Get a guide here:http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0030en
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-01-18 15:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-18 15:22 [Help] setting up hotplug for USB UPSs Arnaud Quette
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).