Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 131244

Summary: $PRODUCT from /etc/hotplug/usb/* scripts is filled with inconsistent values
Product: Gentoo Linux Reporter: Erik Wasser <fuzz>
Component: [OLD] Core systemAssignee: Greg Kroah-Hartman (RETIRED) <gregkh>
Status: RESOLVED WONTFIX    
Severity: normal CC: base-system
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 145809    
Bug Blocks:    

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.