From mboxrd@z Thu Jan 1 00:00:00 1970 From: iSteve Date: Wed, 20 Sep 2006 15:09:58 +0000 Subject: Linux 2.4 hotplug interface bus information Message-Id: <20060920170958.57c0ae80@silver> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org 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 o= ut=20 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=3D/sbin:/bin:/usr/sbin:/usr/bin ACTION=ADd PWD=3D/ SHLVL=3D1 HOME=3D/ PRODUCT=DB0/6970/525 TYPE"4/1/1 _=3D/usr/bin/env PATH=3D/sbin:/bin:/usr/sbin:/usr/bin ACTION=3Dremove PWD=3D/ SHLVL=3D1 HOME=3D/ PRODUCT=DB0/6970/525 TYPE"4/1/1 _=3D/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. --=20 -- 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=3Djoin.php&p=3Dsourceforge&CID=DEVD= EV _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel