* [patch] minor hotplug fixup
@ 2005-10-18 12:12 Gerd Knorr
2005-10-19 12:35 ` Ewan Mellor
0 siblings, 1 reply; 2+ messages in thread
From: Gerd Knorr @ 2005-10-18 12:12 UTC (permalink / raw)
To: xen-devel
[-- Attachment #1: Type: text/plain, Size: 168 bytes --]
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
[-- Attachment #2: fix --]
[-- Type: text/plain, Size: 993 bytes --]
diff -u tools/examples/vif-bridge /etc/xen/scripts/vif-bridge
--- tools/examples/vif-bridge 2005-10-18 12:42:32.000000000 +0200
+++ /etc/xen/scripts/vif-bridge 2005-10-18 13:50:59.000000000 +0200
@@ -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 -u tools/examples/xen-hotplug-common.sh /etc/xen/scripts/xen-hotplug-common.sh
--- tools/examples/xen-hotplug-common.sh 2005-10-18 12:42:32.000000000 +0200
+++ /etc/xen/scripts/xen-hotplug-common.sh 2005-10-18 13:50:15.000000000 +0200
@@ -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"
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-10-19 12:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-18 12:12 [patch] minor hotplug fixup Gerd Knorr
2005-10-19 12:35 ` Ewan Mellor
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.