* Re: How to replace hotplug handler
2009-01-06 6:25 How to replace hotplug handler Adam Jiang
@ 2009-01-06 6:34 ` Greg KH
2009-01-06 8:07 ` Adam Jiang
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Greg KH @ 2009-01-06 6:34 UTC (permalink / raw)
To: linux-hotplug
On Tue, Jan 06, 2009 at 03:25:27PM +0900, Adam Jiang wrote:
> Hello,
>
> I am a newbie for kernel-hacking. I have a problem with hotplug
> handler. That's a kind of handset, on which the system should detect
> the hotplug events with a special program like 'pnphandler'. It will
> work fine when I do
> % echo "/usr/bin/pnphandler" > /proc/sys/kernel/hotplug
>
> But how can I write this into kernel or rootdisk instead of doing it
> again and again after reboot.
The kernel config option CONFIG_UEVENT_HELPER_PATH should be what you
need.
Hope this helps,
greg k-h
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: How to replace hotplug handler
2009-01-06 6:25 How to replace hotplug handler Adam Jiang
2009-01-06 6:34 ` Greg KH
@ 2009-01-06 8:07 ` Adam Jiang
2009-01-06 15:55 ` Greg KH
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Adam Jiang @ 2009-01-06 8:07 UTC (permalink / raw)
To: linux-hotplug
I am sorry. That is the mail agent's fault. :)
I'll sent it again to the list.
Thanks.
------------------------------------------------------------------------------------
I just grep the .config file. But there are no CONFIG options named as
CONFIG_UEVENT_HELPER_PATH
It seem this option was beginning to builtin from 2.6.24. However, I
am using 2.6.18.
Before this version, is there any method to solve this?
Adam
2009/1/6 Greg KH <greg@kroah.com>:
> On Tue, Jan 06, 2009 at 03:46:28PM +0900, Adam Jiang wrote:
>> Thanks.
>
> <snip>
>
> Any reason you only sent this to me and not the whole list?
>
> confused,
>
> greg k-h
>
--
Adam Jiang
------------------------------------------
e-mail:jiang.adam@gmail.com
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: How to replace hotplug handler
2009-01-06 6:25 How to replace hotplug handler Adam Jiang
2009-01-06 6:34 ` Greg KH
2009-01-06 8:07 ` Adam Jiang
@ 2009-01-06 15:55 ` Greg KH
2009-01-07 9:18 ` Adam Jiang
2009-01-07 16:11 ` Greg KH
4 siblings, 0 replies; 6+ messages in thread
From: Greg KH @ 2009-01-06 15:55 UTC (permalink / raw)
To: linux-hotplug
A: No.
Q: Should I include quotations after my reply?
On Tue, Jan 06, 2009 at 05:07:08PM +0900, Adam Jiang wrote:
> I just grep the .config file. But there are no CONFIG options named as
> CONFIG_UEVENT_HELPER_PATH
>
> It seem this option was beginning to builtin from 2.6.24. However, I
> am using 2.6.18.
2.6.18 is no longer supported by the community as it is many years old
and very obsolete and in many places, insecure. If you are stuck using
this version, please contact your vendor for support.
> Before this version, is there any method to solve this?
Just patch your kernel to change the startup value for this field.
good luck,
greg k-h
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to replace hotplug handler
2009-01-06 6:25 How to replace hotplug handler Adam Jiang
` (2 preceding siblings ...)
2009-01-06 15:55 ` Greg KH
@ 2009-01-07 9:18 ` Adam Jiang
2009-01-07 16:11 ` Greg KH
4 siblings, 0 replies; 6+ messages in thread
From: Adam Jiang @ 2009-01-07 9:18 UTC (permalink / raw)
To: linux-hotplug
Thanks greg.
Thanks for help me on this question and how to use this mailing list
efficiently.
>
> Just patch your kernel to change the startup value for this field.
>
I got your point about patching the kernel. But I don't know where
should I start with.
Would you please teach me where can I find this value or how can I grep it?
Thank you very much.
Adam
--
Adam Jiang
------------------------------------------
e-mail:jiang.adam@gmail.com
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: How to replace hotplug handler
2009-01-06 6:25 How to replace hotplug handler Adam Jiang
` (3 preceding siblings ...)
2009-01-07 9:18 ` Adam Jiang
@ 2009-01-07 16:11 ` Greg KH
4 siblings, 0 replies; 6+ messages in thread
From: Greg KH @ 2009-01-07 16:11 UTC (permalink / raw)
To: linux-hotplug
On Wed, Jan 07, 2009 at 06:18:11PM +0900, Adam Jiang wrote:
> > Just patch your kernel to change the startup value for this field.
> >
> I got your point about patching the kernel. But I don't know where
> should I start with.
> Would you please teach me where can I find this value or how can I grep it?
A simple grep of the kernel source tree should find this value for you.
As I don't have a copy of 2.6.18 around at the moment, I don't recall
its exact location.
And again, if you are stuck with 2.6.18, I would consider contacting
your vendor for this kind of thing, as they are the ones that need to
support it.
good luck,
greg k-h
^ permalink raw reply [flat|nested] 6+ messages in thread