Comment 14 for bug 38140

Revision history for this message
jordg (gbj) wrote :

Found this at: http://wiki.openmoko.org/wiki/USB_Networking#Ubuntu_.28Tested_with_Feisty.2C_Gutsy_and_Hardy.29

It seems that LABEL="net_end" is in the wrong place
Can this be fixed now?

Edit /etc/udev/rules.d/85-ifupdown.rules

SUBSYSTEM=="net", DRIVERS=="?*", GOTO="net_start"
GOTO="net_end"

LABEL="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 $env{INTERFACE}"

LABEL="net_end"

ACTION=="remove", RUN+="/sbin/start-stop-daemon --start --background --pidfile /var/run/network/bogus --startas /sbin/ifdown -- --allow auto $env{INTERFACE}"