Linux 2.4 hotplug interface bus information
Greetings,
I'm looking at hotplug event interface on 2.4 kernels (testbed is vanilla 2.4.32), and I wonder how did the old hotplug shell script system figured out what bus the device is connected to. I've hooked up a script that dumps env vars to a file to /proc/sys/kernel/hotplug, and when connecting and removing some MicroStar Bluetooth device, I get only these events:
PATH=/sbin:/bin:/usr/sbin:/usr/bin
ACTIONd
PWD=/
SHLVL=1
HOME=/
PRODUCTÛ0/6970/525
TYPE"4/1/1
_=/usr/bin/env
PATH=/sbin:/bin:/usr/sbin:/usr/bin
ACTION=remove
PWD=/
SHLVL=1
HOME=/
PRODUCTÛ0/6970/525
TYPE"4/1/1
_=/usr/bin/env
I'd like to write a dumb function that would generate modalias out of these (or further process them in any fashion), but without the bus, I believe I can never succeed.
Thanks in advance for any reply.
Signature · 11 lines
-- iSteve ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CIDÞVDEV _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net [email protected] https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 3 lines
I'm looking at hotplug event interface on 2.4 kernels (testbed is vanilla 2.4.32), and I wonder how did the old hotplug shell script system figured out what bus the device is connected to.
Disregard that, figured out it's in argv[1]... I'm way too used to environmental variables now. Thanks. :)
Signature · 11 lines
-- iSteve ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CIDÞVDEV _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net [email protected] https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel