ia64/xen-unstable

changeset 8308:10220071deff

Use new do_without_error function to squelch the error when closing down the
interface.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author emellor@leeni.uk.xensource.com
date Fri Dec 09 10:51:20 2005 +0000 (2005-12-09)
parents 2b09e58cb108
children a8be51efaf46
files tools/examples/vif-nat
line diff
     1.1 --- a/tools/examples/vif-nat	Fri Dec 09 10:50:49 2005 +0000
     1.2 +++ b/tools/examples/vif-nat	Fri Dec 09 10:51:20 2005 +0000
     1.3 @@ -155,7 +155,7 @@ case "$command" in
     1.4          ;;
     1.5      offline)
     1.6          [ "$dhcp" != 'no' ] && dhcp_down
     1.7 -        ifconfig "$vif" down || true
     1.8 +        do_without_error ifconfig "$vif" down
     1.9          ;;
    1.10  esac
    1.11