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

[Xen-changelog] Use new do_without_error function to squelch the error when closing down the



# HG changeset patch
# User emellor@xxxxxxxxxxxxxxxxxxxxxx
# 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@xxxxxxxxxxxxx>

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@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®.