Mailing List Archive

Use new do_without_error function to squelch the error when closing down the
# HG changeset patch
# User emellor@leeni.uk.xensource.com
# Node ID 10220071deff95bf1c30432d5a676089e36d527e
# Parent 2b09e58cb1088104c1a3425c49cfd386fc04587c
Use new do_without_error function to squelch the error when closing down the
interface.

Signed-off-by: Ewan Mellor <ewan@xensource.com>

diff -r 2b09e58cb108 -r 10220071deff tools/examples/vif-nat
--- a/tools/examples/vif-nat Fri Dec 9 10:50:49 2005
+++ b/tools/examples/vif-nat Fri Dec 9 10:51:20 2005
@@ -155,7 +155,7 @@
;;
offline)
[ "$dhcp" != 'no' ] && dhcp_down
- ifconfig "$vif" down || true
+ do_without_error ifconfig "$vif" down
;;
esac


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