<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body dir="ltr" bgcolor="#ffffff" text="#000000">
<p style="margin-bottom: 0cm; margin-top: 0pt;">Moshe Gorohovsky wrote:<br>
</p>
<blockquote cite="mid:498ECC8A.2030600@tkos.co.il" type="cite">
<pre wrap="">Hi all,
How to detect USB gadget linux connection to another host?
Are there /sys or /proc files that I can see from them, if the system is
connected to another host, via a USB cable?
- Moshe
</pre>
</blockquote>
<br>
You get a hotplug event when a new USB host is connected.<br>
<br>
See: <a class="moz-txt-link-freetext" href="http://linux.die.net/man/8/hotplug">http://linux.die.net/man/8/hotplug</a><br>
<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>