From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Fri, 30 Sep 2005 17:07:01 +0000 Subject: Re: gerneral question for linux-2.6 and udev and hotplug Message-Id: <20050930170701.GA18039@vrfy.org> List-Id: References: <11E3973D1E78D311A5B400508B4A70CE02B3CEE1@COMSRVR> In-Reply-To: <11E3973D1E78D311A5B400508B4A70CE02B3CEE1@COMSRVR> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Fri, Sep 30, 2005 at 10:51:55AM -0400, Gavin Li wrote: > All, > > I am trying migrate to 2.6 kernel from 2.4. > I copied RedHat FC3 kernel binary vmlinuz-2.6.9-1.667 to my harddrive, and > /bin /sbin and /lib /usr/ are also copied. > I didn't copy /etc to my harddrive, I installed hotplug-2004_09_23 to my > /etc > In my /etc/inittab, I set start script to my own start script, which is > /etc/rc.d/rcS Hell, what are you doing? How about installing a recent distro version and everything will just work out of the box? > My problem is: > when I plug in a USB flash drive, nothing happened, I can't find hotplug is > working > > Then I change echo /sbin/udevsend > /proc/sys/kernel/hotplug to echo > /sbin/mytest > /proc/sys/kernel/hotplug > > and mytest script is : > echo "starting hotplug" > /tmp/tmp.txt > > then I do plug/unplug USB flash drive, the file size of /tmp/tmp.txt is 0, > which means mytest script is never got executed. > > Anything I did wrong? or do I miss something Yes, the very first thing you did wrong is messing around with an old installation and mixing completely incompatible components! The script is broken, I expect. Does it have #!/bin/sh? Is it executable? > One more question:If I use udev-070, do I still need to compile and install > sysfsutils and/or sysutils? No, it's not needed or useful. Kay ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ 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