Skip to contentSkip to conversation

minor hotplug fixup

PATCH Applied Gerd Knorr 2 participants 2 messages Oct 18, 2005 – Oct 19, 2005

lore
Share & tools
lore

Gerd Knorr

author
#0 lore raw

PATCH 1/1 minor hotplug fixup

Hi,

Some trivial changes for the tool scripts:
- make xen-hotplug-common.sh (un)set locales.
- use xen-hotplug-common.sh in vif-bridge.

please apply,

Gerd

etc/xen/scripts/vif-bridge renamed from examples/vif-bridge +2 -5
diff -u tools/examples/vif-bridge /etc/xen/scripts/vif-bridge
@@ -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
etc/xen/scripts/xen-hotplug-common.sh renamed from examples/xen-hotplug-common.sh +3 -1
diff -u tools/examples/xen-hotplug-common.sh /etc/xen/scripts/xen-hotplug-common.sh
@@ -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-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

Applied
#1 lore raw
Quoted 5 lines · Gerd Knorr

Hi,

Some trivial changes for the tool scripts:
- make xen-hotplug-common.sh (un)set locales.
- use xen-hotplug-common.sh in vif-bridge.

Applied. Thanks Gerd!

Ewan.