Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 131244 - $PRODUCT from /etc/hotplug/usb/* scripts is filled with inconsistent values
Summary: $PRODUCT from /etc/hotplug/usb/* scripts is filled with inconsistent values
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Greg Kroah-Hartman (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on: 145809
Blocks:
  Show dependency tree
 
Reported: 2006-04-25 10:34 UTC by Erik Wasser
Modified: 2007-09-08 13:07 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Erik Wasser 2006-04-25 10:34:25 UTC
I've got the following mini script in '/etc/hotplug/usb/ct-includ-display' (plus an usermap):

echo "$PRODUCT $ACTION $DEVICE" >>/tmp/foo.log

case $PRODUCT in
    07c0/1501/*) :;;    # My device?
    *) exit 0;;         # no match? exit!
esac
...more stuff...

You see I've added some logging stuff at the top of the script. If the script is called from coldplug (reboot) $PRODCUT is set to the string '07c0'. If I replug the device $PRODUCT is set to '7c0' (without the missing zero). This was very confusing and of course inconsistent.

I'm using:

coldplug-20040920
hotplug-base-20040401
hotplug-20040923-r2
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-09-04 00:05:14 UTC
sys-apps/hotplug is useless with any recent udev version, and 2.4 kernels are no longer supported. Unmerge it and move on.

WONTFIX.
Comment 2 Erik Wasser 2007-09-08 13:07:55 UTC
Thanks for the feedback. I've removed the packages from my system.