On 15/08/07, <b class="gmail_sendername">Emre Turkay</b> &lt;<a href="mailto:emreturkay@gmail.com">emreturkay@gmail.com</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi folks,<br><br>Although I have &quot;auto&quot; in the interfaces file for usb0, every time I<br>disconnect/reconnect or turn on/off the device I need to type<br>ifdown usb0<br>ifup usb0<br>for neo to connect to the device. Any ideas?
<br><br>Thanks,<br><br>emre<br><br>_______________________________________________<br>OpenMoko community mailing list<br><a href="mailto:community@lists.openmoko.org">community@lists.openmoko.org</a><br><a href="http://lists.openmoko.org/mailman/listinfo/community">
http://lists.openmoko.org/mailman/listinfo/community</a><br></blockquote></div><br>If you are using ubuntu fiesty, there&#39;s a bug where it fails to run ifdown when the usb is unplugged.<br>This means it only works the first time after the system is booted.
<br><br>Did I forget to put that on the wiki? I submitted a ubuntu bug report for it. (package ifupdown)<br><br>/etc/udev/rules.d/85-ifupdown needs patching...<br clear="all"># This file causes network devices to be brought up or down as a result
<br># of hardware being added or removed, including that which isn&#39;t ordinarily<br># removable.<br># See udev(7) for syntax.<br><br>SUBSYSTEM==&quot;net&quot;, DRIVERS==&quot;?*&quot;, GOTO=&quot;net_start&quot;<br>GOTO=&quot;net_end&quot;
<br><br>LABEL=&quot;net_start&quot;<br><br># Bring devices up and down only if they&#39;re marked auto.<br># Use start-stop-daemon so we don&#39;t wait on dhcp<br>ACTION==&quot;add&quot;,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RUN+=&quot;/sbin/start-stop-daemon --start --background --pidfile /var/run/network/bogus --startas /sbin/ifup -- --allow auto $env{INTERFACE}&quot;
<br><br>LABEL=&quot;net_end&quot;<br><br>SUBSYSTEM==&quot;net&quot;, ACTION==&quot;remove&quot;,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RUN+=&quot;/sbin/start-stop-daemon --start --background --pidfile /var/run/network/bogus --startas /sbin/ifdown -- --allow auto $env{INTERFACE}&quot;
<br><br>-- <br>Brian_Brunswick____brian@ithil.org____Wit____Disclaimer____!Shortsig_rules!