usb0 ifup/down requirement.
emreturkay at gmail.com
Thu Aug 16 07:45:54 CEST 2007
Yep, using Feisty. Thanks for the information.
On 8/15/07, Brian Brunswick <brian at ithil.org> wrote:
> On 15/08/07, Emre Turkay <emreturkay at gmail.com> wrote:
> > Hi folks,
> > Although I have "auto" in the interfaces file for usb0, every time I
> > disconnect/reconnect or turn on/off the device I need to type
> > ifdown usb0
> > ifup usb0
> > for neo to connect to the device. Any ideas?
> > Thanks,
> > emre
> > _______________________________________________
> > OpenMoko community mailing list
> > community at lists.openmoko.org
> > http://lists.openmoko.org/mailman/listinfo/community
> If you are using ubuntu fiesty, there's a bug where it fails to run ifdown
> when the usb is unplugged.
> This means it only works the first time after the system is booted.
> Did I forget to put that on the wiki? I submitted a ubuntu bug report for
> it. (package ifupdown)
> /etc/udev/rules.d/85-ifupdown needs patching...
> # This file causes network devices to be brought up or down as a result
> # of hardware being added or removed, including that which isn't ordinarily
> # removable.
> # See udev(7) for syntax.
> SUBSYSTEM=="net", DRIVERS=="?*", GOTO="net_start"
> # Bring devices up and down only if they're marked auto.
> # Use start-stop-daemon so we don't wait on dhcp
> ACTION=="add", RUN+="/sbin/start-stop-daemon --start --background
> --pidfile /var/run/network/bogus --startas /sbin/ifup -- --allow auto
> SUBSYSTEM=="net", ACTION=="remove",
> RUN+="/sbin/start-stop-daemon --start --background --pidfile
> /var/run/network/bogus --startas /sbin/ifdown -- --allow auto
> Brian_Brunswick____brian at ithil.org____Wit____Disclaimer____!Shortsig_rules!
More information about the community