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

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



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1199979046 0
# Node ID 850ec55df0dc9f831091155012bba0c613759470
# Parent  8922a14692845c6ae49f45dbeed81fa6ee3b9827
Fix network-bridge shell quoting.
Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---
 tools/examples/network-bridge |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff -r 8922a1469284 -r 850ec55df0dc tools/examples/network-bridge
--- a/tools/examples/network-bridge     Wed Jan 09 22:21:58 2008 +0000
+++ b/tools/examples/network-bridge     Thu Jan 10 15:30:46 2008 +0000
@@ -96,12 +96,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®.