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

[Xen-changelog] Some trivial changes for the tool scripts:



# HG changeset patch
# User emellor@xxxxxxxxxxxxxxxxxxxxxx
# Node ID 74f693d6e03ec0d3c960d7acc552ec71c702163e
# Parent  b556130d3c6c3dfbef9194d564227bc8b438dcc1
Some trivial changes for the tool scripts:
 - make xen-hotplug-common.sh (un)set locales.
 - use xen-hotplug-common.sh in vif-bridge.

>From Gerd Knorr <kraxel@xxxxxxx>.

Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>

diff -r b556130d3c6c -r 74f693d6e03e tools/examples/vif-bridge
--- a/tools/examples/vif-bridge Wed Oct 19 12:33:22 2005
+++ b/tools/examples/vif-bridge Wed Oct 19 12:34:44 2005
@@ -31,11 +31,8 @@
 # rules for its ip addresses (if any).
 #============================================================================
 
-# Exit if anything goes wrong
-set -e 
-export PATH=/sbin:/bin:/usr/bin:/usr/sbin:$PATH
-
-echo "*vif-bridge $*" >&2
+dir=$(dirname "$0")
+. "$dir/xen-hotplug-common.sh"
 
 # Operation name.
 OP=$1
diff -r b556130d3c6c -r 74f693d6e03e tools/examples/xen-hotplug-common.sh
--- a/tools/examples/xen-hotplug-common.sh      Wed Oct 19 12:33:22 2005
+++ b/tools/examples/xen-hotplug-common.sh      Wed Oct 19 12:34:44 2005
@@ -1,6 +1,8 @@
 set -e
 
-export PATH=/sbin:/bin:/usr/bin:/usr/sbin:$PATH
+export PATH="/sbin:/bin:/usr/bin:/usr/sbin:$PATH"
+export LANG="POSIX"
+unset $(set | grep ^LC_ | cut -d= -f1)
 
 log() {
   local level="$1"

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