ia64/xen-unstable

changeset 16702:850ec55df0dc

Fix network-bridge shell quoting.
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Jan 10 15:30:46 2008 +0000 (2008-01-10)
parents 8922a1469284
children c86025f569cb
files tools/examples/network-bridge
line diff
     1.1 --- a/tools/examples/network-bridge	Wed Jan 09 22:21:58 2008 +0000
     1.2 +++ b/tools/examples/network-bridge	Thu Jan 10 15:30:46 2008 +0000
     1.3 @@ -96,12 +96,12 @@ get_ip_info() {
     1.4      
     1.5  do_ifup() {
     1.6      if ! ifup $1 ; then
     1.7 -        if [ ${addr_pfx} ] ; then
     1.8 +        if [ -n "$addr_pfx" ] ; then
     1.9              # use the info from get_ip_info()
    1.10              ip addr flush $1
    1.11              ip addr add ${addr_pfx} dev $1
    1.12              ip link set dev $1 up
    1.13 -            [ ${gateway} ] && ip route add default via ${gateway}
    1.14 +            [ -n "$gateway" ] && ip route add default via ${gateway}
    1.15          fi
    1.16      fi
    1.17  }