[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-3.1-testing] Fix network-bridge shell quoting.



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1199979087 0
# Node ID cba088e098d4d4a1dbcfe9603b720b8701dffa61
# Parent  f4a17a5dc9b03a05a525ffc2b75e80e764cf8924
Fix network-bridge shell quoting.
Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
xen-unstable changeset:   16702:850ec55df0dc9f831091155012bba0c613759470
xen-unstable date:        Thu Jan 10 15:30:46 2008 +0000
---
 tools/examples/network-bridge |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff -r f4a17a5dc9b0 -r cba088e098d4 tools/examples/network-bridge
--- a/tools/examples/network-bridge     Thu Jan 10 11:54:59 2008 +0000
+++ b/tools/examples/network-bridge     Thu Jan 10 15:31:27 2008 +0000
@@ -76,12 +76,12 @@ get_ip_info() {
     
 do_ifup() {
     if ! ifup $1 ; then
-        if [ ${addr_pfx} ] ; then
+        if [ -n "$addr_pfx" ] ; then
             # use the info from get_ip_info()
             ip addr flush $1
             ip addr add ${addr_pfx} dev $1
             ip link set dev $1 up
-            [ ${gateway} ] && ip route add default via ${gateway}
+            [ -n "$gateway" ] && ip route add default via ${gateway}
         fi
     fi
 }

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.