ia64/xen-unstable

changeset 7437:74f693d6e03e

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@suse.de>.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author emellor@leeni.uk.xensource.com
date Wed Oct 19 13:34:44 2005 +0100 (2005-10-19)
parents b556130d3c6c
children c08e7f0b1ee5 857b79d27993
files tools/examples/vif-bridge tools/examples/xen-hotplug-common.sh
line diff
     1.1 --- a/tools/examples/vif-bridge	Wed Oct 19 13:33:22 2005 +0100
     1.2 +++ b/tools/examples/vif-bridge	Wed Oct 19 13:34:44 2005 +0100
     1.3 @@ -31,11 +31,8 @@
     1.4  # rules for its ip addresses (if any).
     1.5  #============================================================================
     1.6  
     1.7 -# Exit if anything goes wrong
     1.8 -set -e 
     1.9 -export PATH=/sbin:/bin:/usr/bin:/usr/sbin:$PATH
    1.10 -
    1.11 -echo "*vif-bridge $*" >&2
    1.12 +dir=$(dirname "$0")
    1.13 +. "$dir/xen-hotplug-common.sh"
    1.14  
    1.15  # Operation name.
    1.16  OP=$1
     2.1 --- a/tools/examples/xen-hotplug-common.sh	Wed Oct 19 13:33:22 2005 +0100
     2.2 +++ b/tools/examples/xen-hotplug-common.sh	Wed Oct 19 13:34:44 2005 +0100
     2.3 @@ -1,6 +1,8 @@
     2.4  set -e
     2.5  
     2.6 -export PATH=/sbin:/bin:/usr/bin:/usr/sbin:$PATH
     2.7 +export PATH="/sbin:/bin:/usr/bin:/usr/sbin:$PATH"
     2.8 +export LANG="POSIX"
     2.9 +unset $(set | grep ^LC_ | cut -d= -f1)
    2.10  
    2.11  log() {
    2.12    local level="$1"