title: linux usb connect/disconnect event
body: <p>Hello I am working on an embedded linux device with a usb port that uses the g_ether driver for usb networking.</p>
  
  <p>When the usb plug is connected the dmesg output is:</p>
  
  <blockquote>
    <p>g_ether gadget: full speed config #2: RNDIS</p>
  </blockquote>
  
  <p>When the usb cable is unplugged no message is written to dmesg.</p>
  
  <p>Using C how can I listen for the connect/disconnect events?  </p>
  
  <p>The embedded linux OS does not have any extras.  There is no dbus daemon or hotplug helper script.  I am not even sure if these would of been helpful.</p>