public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* hotplug and /etc/init.d/hotplug
@ 2003-10-14 11:53 sting sting
  2003-10-14 14:32 ` David Jez
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: sting sting @ 2003-10-14 11:53 UTC (permalink / raw)
  To: linux-kernel

Hello,
I am running RedHat 9 with 2.4.20-8  kernel ;
Now , I have a questo about hotplug:
I have hotplug-2002_04_01-17 installed (rpm);

Now , I read the readme of this rpm ;
in their "installing"  section , clause 5 , it says:
# cp etc/rc.d/init.d/hotplug /etc/rc.d/init.d/hotplug
# cd /etc/rc.d/init.d
# chkconfig --add hotplug

I checked on my machine and there is no "hotplug" file in that folder.
Nevertheless, hotplugin works (because when I plug a USB camera
I can see in the kernel log (/var/log/messages)  messages which start with
/etc/hotplug/usb.agent

I also looked at the kernel code (method "call_polcy" in usb.c )
and it doesn't seems to me that the hotplug in /etc/init.d is needed .

can anybody make some clarifications ?
sting

_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE* 
http://join.msn.com/?page=features/junkmail


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: hotplug and /etc/init.d/hotplug
  2003-10-14 11:53 hotplug and /etc/init.d/hotplug sting sting
@ 2003-10-14 14:32 ` David Jez
  2003-10-14 21:22 ` Greg KH
  2003-10-15 21:08 ` dacin
  2 siblings, 0 replies; 4+ messages in thread
From: David Jez @ 2003-10-14 14:32 UTC (permalink / raw)
  To: linux-kernel

On Tue, Oct 14, 2003 at 01:53:46PM +0200, sting sting wrote:
> Hello,
  Hi,

> I am running RedHat 9 with 2.4.20-8  kernel ;
> Now , I have a questo about hotplug:
> I have hotplug-2002_04_01-17 installed (rpm);
> 
> Now , I read the readme of this rpm ;
> in their "installing"  section , clause 5 , it says:
> # cp etc/rc.d/init.d/hotplug /etc/rc.d/init.d/hotplug
> # cd /etc/rc.d/init.d
> # chkconfig --add hotplug
> 
> I checked on my machine and there is no "hotplug" file in that folder.
> Nevertheless, hotplugin works (because when I plug a USB camera
> I can see in the kernel log (/var/log/messages)  messages which start with
> /etc/hotplug/usb.agent
> 
> I also looked at the kernel code (method "call_polcy" in usb.c )
> and it doesn't seems to me that the hotplug in /etc/init.d is needed .
> 
> can anybody make some clarifications ?
  Don't worry about it :-)
  /etc/init.d/... file is script for bring up hotplug subsytem... for
usb it means: modprobe module for usb host controller adapter and mount
/proc/bus/usb ...
  Hotplugin works because usb subsystem execute /sbin/hotplug binary...

  Is that enought?
> sting
-- 
-------------------------------------------------------
  David "Dave" Jez                Brno, CZ, Europe
 E-mail: dave.jez@seznam.cz
PGP key: finger xjezda00@eva.fit.vutbr.cz
---------=[ ~EOF ]=------------------------------------

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: hotplug and /etc/init.d/hotplug
  2003-10-14 11:53 hotplug and /etc/init.d/hotplug sting sting
  2003-10-14 14:32 ` David Jez
@ 2003-10-14 21:22 ` Greg KH
  2003-10-15 21:08 ` dacin
  2 siblings, 0 replies; 4+ messages in thread
From: Greg KH @ 2003-10-14 21:22 UTC (permalink / raw)
  To: sting sting; +Cc: linux-kernel

On Tue, Oct 14, 2003 at 01:53:46PM +0200, sting sting wrote:
> Hello,
> I am running RedHat 9 with 2.4.20-8  kernel ;
> Now , I have a questo about hotplug:
> I have hotplug-2002_04_01-17 installed (rpm);
> 
> Now , I read the readme of this rpm ;
> in their "installing"  section , clause 5 , it says:
> # cp etc/rc.d/init.d/hotplug /etc/rc.d/init.d/hotplug
> # cd /etc/rc.d/init.d
> # chkconfig --add hotplug

That is because Red Hat does not ship the /etc/init.d/hotplug script.
Take it up with them if you want them to change this.

> I checked on my machine and there is no "hotplug" file in that folder.
> Nevertheless, hotplugin works (because when I plug a USB camera
> I can see in the kernel log (/var/log/messages)  messages which start with
> /etc/hotplug/usb.agent
> 
> I also looked at the kernel code (method "call_polcy" in usb.c )
> and it doesn't seems to me that the hotplug in /etc/init.d is needed .

needed for what?  For devices being plugged in and removed, no.  But to
start up the usb subsystems, or shut them down, yes.  Or you can do it
in the rc.sysinit script, which is what Red Hat does.

Hope this helps,

greg k-h

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: hotplug and /etc/init.d/hotplug
  2003-10-14 11:53 hotplug and /etc/init.d/hotplug sting sting
  2003-10-14 14:32 ` David Jez
  2003-10-14 21:22 ` Greg KH
@ 2003-10-15 21:08 ` dacin
  2 siblings, 0 replies; 4+ messages in thread
From: dacin @ 2003-10-15 21:08 UTC (permalink / raw)
  To: sting sting; +Cc: linux-kernel

See /etc/rc.d/rc.sysinit for the magic ....

Regards
Dacodecz

sting sting wrote:

> Hello,
> I am running RedHat 9 with 2.4.20-8  kernel ;
> Now , I have a questo about hotplug:
> I have hotplug-2002_04_01-17 installed (rpm);
>
> Now , I read the readme of this rpm ;
> in their "installing"  section , clause 5 , it says:
> # cp etc/rc.d/init.d/hotplug /etc/rc.d/init.d/hotplug
> # cd /etc/rc.d/init.d
> # chkconfig --add hotplug
>
> I checked on my machine and there is no "hotplug" file in that folder.
> Nevertheless, hotplugin works (because when I plug a USB camera
> I can see in the kernel log (/var/log/messages)  messages which start 
> with
> /etc/hotplug/usb.agent
>
> I also looked at the kernel code (method "call_polcy" in usb.c )
> and it doesn't seems to me that the hotplug in /etc/init.d is needed .
>
> can anybody make some clarifications ?
> sting
>
> _________________________________________________________________
> The new MSN 8: advanced junk mail protection and 2 months FREE* 
> http://join.msn.com/?page=features/junkmail
>
> -
> To unsubscribe from this list: send the line "unsubscribe 
> linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
>




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-10-15 21:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-14 11:53 hotplug and /etc/init.d/hotplug sting sting
2003-10-14 14:32 ` David Jez
2003-10-14 21:22 ` Greg KH
2003-10-15 21:08 ` dacin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox