Merge lp:~smoser/ubuntu/oneiric/ifupdown/lp838968 into lp:ubuntu/oneiric/ifupdown
Proposed by
Scott Moser
Status: | Merged |
---|---|
Merged at revision: | 56 |
Proposed branch: | lp:~smoser/ubuntu/oneiric/ifupdown/lp838968 |
Merge into: | lp:ubuntu/oneiric/ifupdown |
Diff against target: |
86 lines (+27/-14) 3 files modified
debian/changelog (+12/-0) debian/ifupdown.upstart.if-up (+14/-13) ifupdown.nw (+1/-1) |
To merge this branch: | bzr merge lp:~smoser/ubuntu/oneiric/ifupdown/lp838968 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Steve Langasek | Approve | ||
Ubuntu branches | Pending | ||
Review via email: mp+73741@code.launchpad.net |
Description of the change
* invoke dhclient3 with '-1', meaning it should exit failure if it does
not receive a response in 60 seconds. (LP: #838968)
* fix the broken static-
state of which interfaces have been brought up by marker files
in /run/network named ifup.IFACE and a directory named
static-
emitted.
To post a comment you must log in.
I don't think the changes to the interface of the all_interfaces_up() and get_auto_ interfaces( ) functions are an improvement. Why move the interface list to an argument to all_interfaces_up? Why returning the interface list from get_auto_ interfaces( ) in a global variable instead of on stdout? Neither of these changes are necessary for fixing the bug, and I think they both make the code harder to read.
+# touch our own "marker" indicating that this interface has been brought up. DEV_PREFIX} $IFACE"
+date > "${MARK_
+
Makes sense to avoid use of touch, which is in /usr/bin; but we don't exactly need the datestamp. Better to use :> "${MARK_ DEV_PREFIX} $IFACE" and avoid a needless fork.
+ # if no interfaces were passed in, then "all [given] were up"
+ [ $# -eq 0 ] && return 0
Redundant check. If $# -eq 0, the for loop immediately below is a no-op and you'll get the return 0 anyway; so better to leave this out.
+mkdir -p "${MARK_ DEV_PREFIX% /*}" "${MARK_ STATIC_ NETWORK_ EMITTED% /*}"
This call is always unnecessary. The /run/network directory will always be created for us by ifupdown, and both of these variables should always point at /run/network. Please drop this.