<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body dir="ltr" bgcolor="#ffffff" text="#000000">
<p style="margin-bottom: 0cm; margin-top: 0pt;">Moshe Gorohovsky wrote:<br>
</p>
<blockquote cite="mid:498EF111.7010702@tkos.co.il" type="cite">
<pre wrap="">Hi Gilad,
The hotplug command does not work on the system (it is BusyBox). But the
kernel prints a message on system console, when I connect USB cable to a
host. I can use that message.
</pre>
</blockquote>
hotplug is not a command, it's a kernel sybsystem (well, there can be a
program called hotplug that serves hotplug events but can also just be
a simple shell script).<br>
<br>
Using dmesg messages is fine if you just want to debug stuff but it's
really a very bad solution for anything production. (among other things
it's racy). Learn to use the hotplug sub system. that is what it's for.<br>
<br>
If you want, our "Advanced embedded Linux" course has a section on the
subject and the slides are freely available (OK, you have to get a free
Scribd registeration because I'm lazy :-) has some slides on how that
works - <a class="moz-txt-link-freetext" href="http://tuxology.net/courses/advanced-embedded-linux/">http://tuxology.net/courses/advanced-embedded-linux/</a><br>
<br>
Oh, and please DON'T remove the list from CC if I answered you on the
list. I want other people to enjoy the answers to (this is the whole
point of mailing lists). This is not a private consulting session :-)<br>
<br>
Cheers,<br>
Gilad<br>
<br>
<pre class="moz-signature" cols="72">--
Gilad Ben-Yossef
Chief Coffee Drinker
Codefidence Ltd.
The code is free, your time isn't.(TM)
Web: <a class="moz-txt-link-freetext" href="http://codefidence.com">http://codefidence.com</a>
Email: <a class="moz-txt-link-abbreviated" href="mailto:gilad@codefidence.com">gilad@codefidence.com</a>
Office: +972-8-9316883 ext. 201
Fax: +972-8-9316885
Mobile: +972-52-8260388
        The Doctor: Don't worry, Reinette, just a nightmare.
        Everyone has nightmares. Even monsters from under the
        bed have nightmares, don't you, monster?
        Reinette: What do monsters have nightmares about?
        The Doctor: Me!
</pre>
</body>
</html>