hotplug: network-bridge: fix for interfaces with no gateway
authorIan Campbell <ian.campbell@citrix.com>
Wed, 25 Jul 2012 16:39:16 +0000 (17:39 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 25 Jul 2012 16:39:16 +0000 (17:39 +0100)
commitf87945a8d104adc08216762c9ac57debf095707f
treeec12cfa5b2c8c2b41095c30499c1702bb76196a5
parentd64a3a3e6a421ae0746cd4108e11b79e6d1238d4
hotplug: network-bridge: fix for interfaces with no gateway

This comes from an old Debian bug report
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=588477 which refers to
http://lists.xen.org/archives/html/xen-users/2010-06/msg00420.html.

Although we no longer have a trap in _claim_lock as described (this was removed
in 25590:bb250383a4f5 "hotplug/Linux: use flock based locking") and the use of
network-* scripts is discouraged (in favour of using distro provided
mechanisms) the general principal that relying on the semantics of /bin/sh's &&
is unwise seems sound.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
tools/hotplug/Linux/network-bridge