From: Gerd Knorr <kraxel@suse.de>
To: xen-devel <xen-devel@lists.xensource.com>
Subject: [patch] minor hotplug fixup
Date: Tue, 18 Oct 2005 14:12:34 +0200 [thread overview]
Message-ID: <4354E6B2.8010700@suse.de> (raw)
[-- 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
next reply other threads:[~2005-10-18 12:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-18 12:12 Gerd Knorr [this message]
2005-10-19 12:35 ` [patch] minor hotplug fixup Ewan Mellor
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4354E6B2.8010700@suse.de \
--to=kraxel@suse.de \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.