Menu

#5 mpf60.usermap (file format problem)

open
nobody
None
5
2005-01-25
2005-01-25
No

There appears to be a problem with the data fields /
format of the
provided config files in extra under the mplinuxman tree.

When installing mplinuxman one of the steps is to
register the
USB device to the hotplug manager of Linux:

# cat extra/mpf60.usermap >> /etc/hotplug/usb.usermap

However this causes problems when running
/etc/hotplug/usb.agent.
Let's run it manually:

# cd /etc/hotplug
# PWD=/etc/hotplug DEVICE=/proc/bus/usb/001/003
INTERFACE=255/255/255 ACTION=add DEBUG=kernel OLDPWD=/
DEVFS=/proc/bus/usb TYPE=0/0/0 SHLVL=1 HOME=/
PATH=/bin:/sbin:/usr/sbin:/usr/bin PRODUCT=a62/6/100
./usb.agent

This produces one line with an error:
modules.usbmap unparsable line: mplinuxman 0x03 0x0a62
0x0006 0 0 0 0 0 0 0 0 0

I changed the line in /etc/hotplug/usb.usermap to:
mplinuxman 0x0003 0x0a62 0x0006
0x0000 0x0000 0x00 0x00
0x00 0x00 0x00 0x00
0x00000000

(excuse me for the formatting here... but it is one line)

Now it works. When plugging in the mpman f60, the script
/etc/hotplug/usb/mplinuxman is run ok.

To be honest, I am not sure if this is to be blamed on
the way
Debian works (?) or if this is actually a problem in
the provided
usb.usermap sample files. Either way, some notes in the
README would be nice (!)

Discussion


Log in to post a comment.

MongoDB Logo MongoDB