setting up hotplug for USB UPSs
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
Quoted 1 line
Jan 18 15:17:17 daneel kernel: hub.c: new USB device 00:01.3-1.4,
assigned address 4
Quoted 1 line
Jan 18 15:17:22 daneel kernel: hiddev0: USB HID v1.00 Device [MGE UPS
SYSTEMS Evolution] on usb1:4.0
Quoted 1 line
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel