* Unable to run a user program on usb device connection
@ 2007-10-05 12:30 shankoo77
2007-10-08 4:10 ` shankoo77
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: shankoo77 @ 2007-10-05 12:30 UTC (permalink / raw)
To: linux-hotplug
Hi,
I'm a newbie to Linux hotplug sub-system. I want
to hook a user space application with the hot plug
sub-system in such a way that the application is
executed on attaching a specific USB device. I've
explained what all I tried, please let me know where
I'm going wrong.
My linux kernel version is 2.6.10 and it uses the
“udev” mechanism to support hot plug. Our application
should be executed when a device with a specific
vendor id and product id is plugged in the USB bus.
I’ve enabled the hot plug support in the kernel; in
fact by default CONFIG_HOTPLUG was enabled. I included
a test.rules file in the /etc/udev/rules.d/ directory
in which I have included the above mentioned vendor
id, product id and in the PROGRAM parameter the name
of the application to be run. To start with, this
program is just a shell script that prints “Hello
World” on the console. After this, when we plug in the
above mentioned device I’m sure that the kernel has
detected it because I’m seeing the device’s
information in /proc/bus/usb/devices. But our shell
script is not getting called at all. Can some one let
me know what I'm missing here? The test.rules file
contains the following line only
ATTR{idVendor}="0451", ATTR{idProduct}="97fb",
SYMLINK+="hello-%k", MODE="666",
PROGRAM="/home/shankar/usb_disp.sh"
Thanks in Advance,
Shankar
____________________________________________________________________________________
Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos & more.
http://mobile.yahoo.com/go?refer=1GNXIC
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Unable to run a user program on usb device connection
2007-10-05 12:30 Unable to run a user program on usb device connection shankoo77
@ 2007-10-08 4:10 ` shankoo77
2007-10-08 13:16 ` shankoo77
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: shankoo77 @ 2007-10-08 4:10 UTC (permalink / raw)
To: linux-hotplug
Hi,
I'm a newbie to Linux hotplug sub-system. Please
excuse me if the question is very basic. I want
to hook a user space application with the hot plug
sub-system in such a way that the application is
executed on attaching a specific USB device. I've
explained what all I tried below, please let me know
where I'm going wrong.
My linux kernel version is 2.6.10 and it uses the
“udev” mechanism to support hot plug. Our application
should be executed when a device with a specific
vendor id and product id is plugged in the USB bus.
I’ve enabled the hot plug support in the kernel; in
fact by default CONFIG_HOTPLUG was enabled. I included
a test.rules file in the /etc/udev/rules.d/ directory
in which I have included the above mentioned vendor
id, product id and in the PROGRAM parameter the name
of the application to be run. To start with, this
program is just a shell script that prints “Hello
World” on the console. After this, when we plug in the
above mentioned device I’m sure that the kernel has
detected it because I’m seeing the device’s
information in /proc/bus/usb/devices. But our shell
script is not getting called at all. Can some one let
me know what I'm missing here? The test.rules file
contains the following line only
ATTR{idVendor}="0451", ATTR{idProduct}="97fb",
SYMLINK+="hello-%k", MODE="666",
PROGRAM="/home/shankar/usb_disp.sh"
Please help me in getting this sorted out.
Thanks in Advance,
Shankar
____________________________________________________________________________________
Be a better Heartthrob. Get better relationship answers from someone who knows. Yahoo! Answers - Check it out.
http://answers.yahoo.com/dir/?link=list&sid96545433
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: Unable to run a user program on usb device connection
2007-10-05 12:30 Unable to run a user program on usb device connection shankoo77
2007-10-08 4:10 ` shankoo77
@ 2007-10-08 13:16 ` shankoo77
2007-10-09 4:59 ` Nazim Khan
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: shankoo77 @ 2007-10-08 13:16 UTC (permalink / raw)
To: linux-hotplug
Hi,
Thanks for the suggestion, but it didn't work for
me. I'm working on ARM architecture and yes the kernel
detects device removal successfully. I get the
following message on disconnecting a USB device
usb 1-1: USB disconnect, address 2
Also already there is a shell script called hotplug in
the /sbin directory but its not called for some
reason.
I think (I'm not 100% sure though) the kernel code
calls the user program whose path is stored in
"/proc/sys/kernel/hotplug" whenever a hotplug event
happens. In my kernel this happens to be
"/sbin/udevsend". If the kernel has to call
/sbin/hotplug then I need to change this system
variable mentioned above to /sbin/hotplug. I tried
doing this but I was unable to change it (I'm root in
the platform). I tried without changing this also
without any success. By looking at all the documents I
read, it sounds to me that if hot plug is enabled in
the kernel then by default it'll call the program
whose path info is stored in
"/proc/sys/kernel/hotplug". I think for some reason
thats not happening with my setup.
Warm Regards,
Shankar
--- ½ðÈÚ Ð» <stonexjr@hotmail.com> wrote:
>
> You can put "hotplug" script under directory /sbin/
> . It can be invoked once the kernel detects that
> your usb device has been pluged in. So, put
> whatever shell script you want to invoke into this
> service script. Note, make sure the file name of the
> service script under /sbin/ is "hotplug", not
> anythis else. The system will automatically call
> this file once you attach a usb device to your
> system.
> By the way, can your system detect the removal event
> once you remove the usb device? Did the terminal
> promt out some information about the disconnection
> of the usb device? What is your hardware
> architecture£¿> Date: Sun, 7 Oct 2007 21:10:50
> -0700> From: shankoo77@yahoo.com> Subject: Unable to
> run a user program on usb device connection> To:
> linux-hotplug-devel@lists.sourceforge.net> > Hi,>
> I'm a newbie to Linux hotplug sub-system. Please>
> excuse me if the question is very basic. I want> to
> hook a user space application with the hot plug>
> sub-system in such a way that the application is>
> executed on attaching a specific USB device. I've>
> explained what all I tried below, please let me
> know> where I'm going wrong.> > My linux kernel
> version is 2.6.10 and it uses the> ¡°udev¡±
> mechanism to support hot plug. Our application>
> should be executed when a device with a specific>
> vendor id and product id is plugged in the USB bus.>
> I¡¯ve enabled the hot plug support in the kernel;
> in> fact by default CONFIG_HOTPLUG was enabled. I
> included> a test.rules file in the
> /etc/udev/rules.d/ directory> in which I have
> included the above mentioned vendor> id, product id
> and in the PROGRAM parameter the name> of the
> application to be run. To start with, this> program
> is just a shell script that prints ¡°Hello> World¡±
> on the console. After this, when we plug in the>
> above mentioned device I¡¯m sure that the kernel
> has> detected it because I¡¯m seeing the device¡¯s>
> information in /proc/bus/usb/devices. But our shell>
> script is not getting called at all. Can some one
> let> me know what I'm missing here? The test.rules
> file> contains the following line only> >
> ATTR{idVendor}="0451", ATTR{idProduct}="97fb",>
> SYMLINK+="hello-%k", MODE="666",>
> PROGRAM="/home/shankar/usb_disp.sh"> > Please help
> me in getting this sorted out.> > Thanks in
> Advance,> Shankar > > > >
>
____________________________________________________________________________________>
> Be a better Heartthrob. Get better relationship
> answers from someone who knows. Yahoo! Answers -
> Check it out. >
>
http://answers.yahoo.com/dir/?link=list&sid96545433>
> >
>
------------------------------------------------------------------------->
> This SF.net email is sponsored by: Splunk Inc.>
> Still grepping through log files to find problems?
> Stop.> Now Search log events and configuration files
> using AJAX and a browser.> Download your FREE copy
> of Splunk now >> http://get.splunk.com/>
> _______________________________________________>
> 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
>
_________________________________________________________________
> Invite your mail contacts to join your friends list
> with Windows Live Spaces. It's easy!
>
http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us
____________________________________________________________________________________
Pinpoint customers who are looking for what you sell.
http://searchmarketing.yahoo.com/
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Unable to run a user program on usb device connection
2007-10-05 12:30 Unable to run a user program on usb device connection shankoo77
2007-10-08 4:10 ` shankoo77
2007-10-08 13:16 ` shankoo77
@ 2007-10-09 4:59 ` Nazim Khan
2007-10-10 5:38 ` shankoo77
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Nazim Khan @ 2007-10-09 4:59 UTC (permalink / raw)
To: linux-hotplug
Hi Shankar,
If you are not using montavista kernel distribution, then you should
follow the udev theory.
On Montavista kernel, udev does not work.
It supports the hotplug in a different way so you don't need udevd and
its rules in /etc/udev.
Any kernel event is reported to user space first by executing the
/sbin/hotplug script.
If your USB device is Memory Device(Flash/Disk) For usb device, you
should have the following scripts (since mass storage device appears
as SCSI devices)
/etc/hotplug.d/scsi/scsi.hotplug
For other USB devices you need to have appropriate scripts in
/etc/hotplug.d/ folder.
Nazim
On 10/8/07, shankoo77@yahoo.com <shankoo77@yahoo.com> wrote:
> Hi,
> Thanks for the suggestion, but it didn't work for
> me. I'm working on ARM architecture and yes the kernel
> detects device removal successfully. I get the
> following message on disconnecting a USB device
>
> usb 1-1: USB disconnect, address 2
>
> Also already there is a shell script called hotplug in
> the /sbin directory but its not called for some
> reason.
>
> I think (I'm not 100% sure though) the kernel code
> calls the user program whose path is stored in
> "/proc/sys/kernel/hotplug" whenever a hotplug event
> happens. In my kernel this happens to be
> "/sbin/udevsend". If the kernel has to call
> /sbin/hotplug then I need to change this system
> variable mentioned above to /sbin/hotplug. I tried
> doing this but I was unable to change it (I'm root in
> the platform). I tried without changing this also
> without any success. By looking at all the documents I
> read, it sounds to me that if hot plug is enabled in
> the kernel then by default it'll call the program
> whose path info is stored in
> "/proc/sys/kernel/hotplug". I think for some reason
> thats not happening with my setup.
>
> Warm Regards,
> Shankar
>
> --- ½ðÈÚ Ð» <stonexjr@hotmail.com> wrote:
>
> >
> > You can put "hotplug" script under directory /sbin/
> > . It can be invoked once the kernel detects that
> > your usb device has been pluged in. So, put
> > whatever shell script you want to invoke into this
> > service script. Note, make sure the file name of the
> > service script under /sbin/ is "hotplug", not
> > anythis else. The system will automatically call
> > this file once you attach a usb device to your
> > system.
> > By the way, can your system detect the removal event
> > once you remove the usb device? Did the terminal
> > promt out some information about the disconnection
> > of the usb device? What is your hardware
> > architecture£¿> Date: Sun, 7 Oct 2007 21:10:50
> > -0700> From: shankoo77@yahoo.com> Subject: Unable to
> > run a user program on usb device connection> To:
> > linux-hotplug-devel@lists.sourceforge.net> > Hi,>
> > I'm a newbie to Linux hotplug sub-system. Please>
> > excuse me if the question is very basic. I want> to
> > hook a user space application with the hot plug>
> > sub-system in such a way that the application is>
> > executed on attaching a specific USB device. I've>
> > explained what all I tried below, please let me
> > know> where I'm going wrong.> > My linux kernel
> > version is 2.6.10 and it uses the> ¡°udev¡±
> > mechanism to support hot plug. Our application>
> > should be executed when a device with a specific>
> > vendor id and product id is plugged in the USB bus.>
> > I¡¯ve enabled the hot plug support in the kernel;
> > in> fact by default CONFIG_HOTPLUG was enabled. I
> > included> a test.rules file in the
> > /etc/udev/rules.d/ directory> in which I have
> > included the above mentioned vendor> id, product id
> > and in the PROGRAM parameter the name> of the
> > application to be run. To start with, this> program
> > is just a shell script that prints ¡°Hello> World¡±
> > on the console. After this, when we plug in the>
> > above mentioned device I¡¯m sure that the kernel
> > has> detected it because I¡¯m seeing the device¡¯s>
> > information in /proc/bus/usb/devices. But our shell>
> > script is not getting called at all. Can some one
> > let> me know what I'm missing here? The test.rules
> > file> contains the following line only> >
> > ATTR{idVendor}="0451", ATTR{idProduct}="97fb",>
> > SYMLINK+="hello-%k", MODE="666",>
> > PROGRAM="/home/shankar/usb_disp.sh"> > Please help
> > me in getting this sorted out.> > Thanks in
> > Advance,> Shankar > > > >
> >
> ____________________________________________________________________________________>
> > Be a better Heartthrob. Get better relationship
> > answers from someone who knows. Yahoo! Answers -
> > Check it out. >
> >
> http://answers.yahoo.com/dir/?link=list&sid96545433>
> > >
> >
> ------------------------------------------------------------------------->
> > This SF.net email is sponsored by: Splunk Inc.>
> > Still grepping through log files to find problems?
> > Stop.> Now Search log events and configuration files
> > using AJAX and a browser.> Download your FREE copy
> > of Splunk now >> http://get.splunk.com/>
> > _______________________________________________>
> > 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
> >
> _________________________________________________________________
> > Invite your mail contacts to join your friends list
> > with Windows Live Spaces. It's easy!
> >
> http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us
>
>
>
>
> ____________________________________________________________________________________
> Pinpoint customers who are looking for what you sell.
> http://searchmarketing.yahoo.com/
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems? Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> 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
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Unable to run a user program on usb device connection
2007-10-05 12:30 Unable to run a user program on usb device connection shankoo77
` (2 preceding siblings ...)
2007-10-09 4:59 ` Nazim Khan
@ 2007-10-10 5:38 ` shankoo77
2007-10-11 3:42 ` Greg KH
2007-10-19 4:20 ` shankoo77
5 siblings, 0 replies; 7+ messages in thread
From: shankoo77 @ 2007-10-10 5:38 UTC (permalink / raw)
To: linux-hotplug
Hi Nazim,
Thank you for the suggestion. Yes I'm using
montavista kernel, so tried whatever you suggested but
without any success. The following are the steps I
tried,
1)Modified the usb.usermap file in /etc/hotplug
directory as follows
# For our device
test.sh 0x0003 0x0451 0x97FB 0x0000 0x0000
0x00 0x00 0x00 0x00 0x00 0x00
0x00000000
# Test for a USB mouse first
test.sh 0x0003 0x0461 0x4D15 0x0000 0x0000
0x00 0x00 0x00 0x00 0x00 0x00
0x00000000
2)Wrote the test.sh to write a string “Hello World” in
a file debug_out (I’m doing this because I was
informed that in some kernels the echo statements from
the scripts executed as part of hotplug are
re-direceted to /dev/null. By doing this I can look at
this debug_out file and ensure that whether our script
is executed or not) and placed the script under
/etc/hotplug, /etc/hotplug.d and
/etc/hotplug.d/default. The following is the script
echo “Hello World” >> /debug_out
This was also not working. I'm running out of ideas
now. Thanks one again.
Warm Regards,
Shankar
--- Nazim Khan <nazim.asad@gmail.com> wrote:
> Hi Shankar,
>
> If you are not using montavista kernel distribution,
> then you should
> follow the udev theory.
>
> On Montavista kernel, udev does not work.
> It supports the hotplug in a different way so you
> don't need udevd and
> its rules in /etc/udev.
>
> Any kernel event is reported to user space first by
> executing the
> /sbin/hotplug script.
> If your USB device is Memory Device(Flash/Disk) For
> usb device, you
> should have the following scripts (since mass
> storage device appears
> as SCSI devices)
> /etc/hotplug.d/scsi/scsi.hotplug
>
> For other USB devices you need to have appropriate
> scripts in
> /etc/hotplug.d/ folder.
>
> Nazim
>
>
>
>
>
> On 10/8/07, shankoo77@yahoo.com
> <shankoo77@yahoo.com> wrote:
> > Hi,
> > Thanks for the suggestion, but it didn't work
> for
> > me. I'm working on ARM architecture and yes the
> kernel
> > detects device removal successfully. I get the
> > following message on disconnecting a USB device
> >
> > usb 1-1: USB disconnect, address 2
> >
> > Also already there is a shell script called
> hotplug in
> > the /sbin directory but its not called for some
> > reason.
> >
> > I think (I'm not 100% sure though) the kernel code
> > calls the user program whose path is stored in
> > "/proc/sys/kernel/hotplug" whenever a hotplug
> event
> > happens. In my kernel this happens to be
> > "/sbin/udevsend". If the kernel has to call
> > /sbin/hotplug then I need to change this system
> > variable mentioned above to /sbin/hotplug. I tried
> > doing this but I was unable to change it (I'm root
> in
> > the platform). I tried without changing this also
> > without any success. By looking at all the
> documents I
> > read, it sounds to me that if hot plug is enabled
> in
> > the kernel then by default it'll call the program
> > whose path info is stored in
> > "/proc/sys/kernel/hotplug". I think for some
> reason
> > thats not happening with my setup.
> >
> > Warm Regards,
> > Shankar
> >
> > --- ½ðÈÚ Ð» <stonexjr@hotmail.com> wrote:
> >
> > >
> > > You can put "hotplug" script under directory
> /sbin/
> > > . It can be invoked once the kernel detects that
> > > your usb device has been pluged in. So, put
> > > whatever shell script you want to invoke into
> this
> > > service script. Note, make sure the file name of
> the
> > > service script under /sbin/ is "hotplug", not
> > > anythis else. The system will automatically call
> > > this file once you attach a usb device to your
> > > system.
> > > By the way, can your system detect the removal
> event
> > > once you remove the usb device? Did the terminal
> > > promt out some information about the
> disconnection
> > > of the usb device? What is your hardware
> > > architecture£¿> Date: Sun, 7 Oct 2007 21:10:50
> > > -0700> From: shankoo77@yahoo.com> Subject:
> Unable to
> > > run a user program on usb device connection> To:
> > > linux-hotplug-devel@lists.sourceforge.net> >
> Hi,>
> > > I'm a newbie to Linux hotplug sub-system.
> Please>
> > > excuse me if the question is very basic. I want>
> to
> > > hook a user space application with the hot plug>
> > > sub-system in such a way that the application
> is>
> > > executed on attaching a specific USB device.
> I've>
> > > explained what all I tried below, please let me
> > > know> where I'm going wrong.> > My linux kernel
> > > version is 2.6.10 and it uses the> ¡°udev¡±
> > > mechanism to support hot plug. Our application>
> > > should be executed when a device with a
> specific>
> > > vendor id and product id is plugged in the USB
> bus.>
> > > I¡¯ve enabled the hot plug support in the
> kernel;
> > > in> fact by default CONFIG_HOTPLUG was enabled.
> I
> > > included> a test.rules file in the
> > > /etc/udev/rules.d/ directory> in which I have
> > > included the above mentioned vendor> id, product
> id
> > > and in the PROGRAM parameter the name> of the
> > > application to be run. To start with, this>
> program
> > > is just a shell script that prints ¡°Hello>
> World¡±
> > > on the console. After this, when we plug in the>
> > > above mentioned device I¡¯m sure that the kernel
> > > has> detected it because I¡¯m seeing the
> device¡¯s>
> > > information in /proc/bus/usb/devices. But our
> shell>
> > > script is not getting called at all. Can some
> one
> > > let> me know what I'm missing here? The
> test.rules
> > > file> contains the following line only> >
> > > ATTR{idVendor}="0451",
> ATTR{idProduct}="97fb",>
> > > SYMLINK+="hello-%k", MODE="666",>
> > > PROGRAM="/home/shankar/usb_disp.sh"> > Please
> help
> > > me in getting this sorted out.> > Thanks in
> > > Advance,> Shankar > > > >
> > >
> >
>
____________________________________________________________________________________>
> > > Be a better Heartthrob. Get better relationship
> > > answers from someone who knows. Yahoo! Answers -
> > > Check it out. >
> > >
> >
>
http://answers.yahoo.com/dir/?link=list&sid96545433>
> > > >
> > >
> >
>
------------------------------------------------------------------------->
> > > This SF.net email is sponsored by: Splunk Inc.>
> > > Still grepping through log files to find
> problems?
> > > Stop.> Now Search log events and configuration
> files
> > > using AJAX and a browser.> Download your FREE
> copy
> > > of Splunk now >> http://get.splunk.com/>
> > > _______________________________________________>
> > > 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
> > >
> >
>
_________________________________________________________________
> > > Invite your mail contacts to join your friends
> list
> > > with Windows Live Spaces. It's easy!
> > >
> >
>
http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us
> >
> >
> >
> >
> >
>
____________________________________________________________________________________
> > Pinpoint customers who are looking for what you
> sell.
> > http://searchmarketing.yahoo.com/
> >
> >
>
-------------------------------------------------------------------------
> > This SF.net email is sponsored by: Splunk Inc.
> > Still grepping through log files to find problems?
> Stop.
> > Now Search log events and configuration files
> using AJAX and a browser.
>
== message truncated =
____________________________________________________________________________________
Check out the hottest 2008 models today at Yahoo! Autos.
http://autos.yahoo.com/new_cars.html
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Unable to run a user program on usb device connection
2007-10-05 12:30 Unable to run a user program on usb device connection shankoo77
` (3 preceding siblings ...)
2007-10-10 5:38 ` shankoo77
@ 2007-10-11 3:42 ` Greg KH
2007-10-19 4:20 ` shankoo77
5 siblings, 0 replies; 7+ messages in thread
From: Greg KH @ 2007-10-11 3:42 UTC (permalink / raw)
To: linux-hotplug
On Tue, Oct 09, 2007 at 10:38:52PM -0700, shankoo77@yahoo.com wrote:
> Hi Nazim,
> Thank you for the suggestion. Yes I'm using
> montavista kernel, so tried whatever you suggested but
I really suggest asking montavista, as they are the ones who support
their "odd" hotplug-like setup, not anyone in the community.
Ah the joys of doing things different from the rest of the Linux
world...
good luck,
greg k-h
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Unable to run a user program on usb device connection
2007-10-05 12:30 Unable to run a user program on usb device connection shankoo77
` (4 preceding siblings ...)
2007-10-11 3:42 ` Greg KH
@ 2007-10-19 4:20 ` shankoo77
5 siblings, 0 replies; 7+ messages in thread
From: shankoo77 @ 2007-10-19 4:20 UTC (permalink / raw)
To: linux-hotplug
Hi All,
Finally I was able to find the fix. Wanted to post
the solution also to the group so that some one facing
the same problem can be helped. The mistake was in my
script file. I was told that the first line in a
script file should always be
#!/sbin/sh
which was not the case with mine. Once I added this
line things started working for me.
Warm Regards,
Shankar
--- Greg KH <greg@kroah.com> wrote:
> On Tue, Oct 09, 2007 at 10:38:52PM -0700,
> shankoo77@yahoo.com wrote:
> > Hi Nazim,
> > Thank you for the suggestion. Yes I'm using
> > montavista kernel, so tried whatever you suggested
> but
>
> I really suggest asking montavista, as they are the
> ones who support
> their "odd" hotplug-like setup, not anyone in the
> community.
>
> Ah the joys of doing things different from the rest
> of the Linux
> world...
>
> good luck,
>
> greg k-h
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
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
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2007-10-19 4:20 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-05 12:30 Unable to run a user program on usb device connection shankoo77
2007-10-08 4:10 ` shankoo77
2007-10-08 13:16 ` shankoo77
2007-10-09 4:59 ` Nazim Khan
2007-10-10 5:38 ` shankoo77
2007-10-11 3:42 ` Greg KH
2007-10-19 4:20 ` shankoo77
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).