Comment 7 for bug 130437

Revision history for this message
Brad Midgley (bmidgley-gmail) wrote :

A newer suggestion on the openmoko wiki is to move the label net_end to be above the remove action. The resulting /etc/udev/rules.d/85-ifupdown.rules looks like:

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

LABEL="net_start"
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}"