direct-io.hg

changeset 7945:83bc047bb346

1) "brctl show" has no parameters.
2) Add a -n flag to iptables -L to skip DNS lookups
author dykman@us.ibm.com
date Sun Nov 20 15:37:08 2005 +0100 (2005-11-20)
parents 1e3042a93904
children 44d96609ea71
files tools/examples/vif-bridge tools/examples/vif-common.sh
line diff
     1.1 --- a/tools/examples/vif-bridge	Sun Nov 20 15:01:15 2005 +0100
     1.2 +++ b/tools/examples/vif-bridge	Sun Nov 20 15:37:08 2005 +0100
     1.3 @@ -48,9 +48,9 @@ fi
     1.4  
     1.5  case "$command" in
     1.6      online)
     1.7 -        if brctl show "$bridge" | grep "$vif" >&/dev/null
     1.8 +        if brctl show | grep "$vif" >&/dev/null
     1.9          then
    1.10 -          log debug "$vif already attached to $bridge"
    1.11 +          log debug "$vif already attached to a bridge"
    1.12            exit 0
    1.13          fi
    1.14  
     2.1 --- a/tools/examples/vif-common.sh	Sun Nov 20 15:01:15 2005 +0100
     2.2 +++ b/tools/examples/vif-common.sh	Sun Nov 20 15:37:08 2005 +0100
     2.3 @@ -82,7 +82,7 @@ function handle_iptable()
     2.4    # binary is not sufficient, because the user may not have the appropriate
     2.5    # modules installed.  If iptables is not working, then there's no need to do
     2.6    # anything with it, so we can just return.
     2.7 -  if ! iptables -L >&/dev/null
     2.8 +  if ! iptables -L -n >&/dev/null
     2.9    then
    2.10      return
    2.11    fi