mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
Switch hotplug scripts to use /bin/bash rather than /bin/sh.
Hotplug scripts include certain bash-isms that are not supported under some distros' default shell (eg. Ubuntu 6.10's use of dash) Signed-off-by: Alastair Tse <atse@xensource.com>
This commit is contained in:
1 parent
7c6b36118d
commit
b2bfd9596f
16 files changed
+19
-19
No files matched your search
@@ -1,4 +1,4 @@
|
||||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
|
||||
# Copyright (c) 2005, XenSource Ltd.
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
|
||||
dir=$(dirname "$0")
|
||||
. "$dir/block-common.sh"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
|
||||
# Usage: block-enbd [bind server ctl_port |unbind node]
|
||||
#
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
|
||||
# Usage: block-nbd [bind server ctl_port |unbind node]
|
||||
#
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
|
||||
# Copyright (c) 2005 IBM Corporation
|
||||
#
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
#============================================================================
|
||||
# Default Xen network start/stop script.
|
||||
# Xend calls a network script when it starts.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
#============================================================================
|
||||
# Default Xen network start/stop script when using NAT.
|
||||
# Xend calls a network script when it starts.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
#============================================================================
|
||||
# Default Xen network start/stop script.
|
||||
# Xend calls a network script when it starts.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
#============================================================================
|
||||
# /etc/xen/vif-bridge
|
||||
#
|
||||
|
||||
@@ -64,7 +64,7 @@ then
|
||||
fi
|
||||
|
||||
|
||||
function frob_iptable()
|
||||
frob_iptable()
|
||||
{
|
||||
if [ "$command" == "online" ]
|
||||
then
|
||||
@@ -89,7 +89,7 @@ If you are using iptables, this may affect networking for guest domains."
|
||||
# to those coming from the specified networks, though we allow DHCP requests
|
||||
# as well.
|
||||
#
|
||||
function handle_iptable()
|
||||
handle_iptable()
|
||||
{
|
||||
# Check for a working iptables installation. Checking for the iptables
|
||||
# binary is not sufficient, because the user may not have the appropriate
|
||||
@@ -123,7 +123,7 @@ function handle_iptable()
|
||||
# Print the IP address currently in use at the given interface, or nothing if
|
||||
# the interface is not up.
|
||||
#
|
||||
function ip_of()
|
||||
ip_of()
|
||||
{
|
||||
ip addr show "$1" | awk "/^.*inet.*$1\$/{print \$2}" | sed -n '1 s,/.*,,p'
|
||||
}
|
||||
@@ -137,7 +137,7 @@ function ip_of()
|
||||
# to these scripts, or eth0 by default. This function will call fatal if no
|
||||
# such interface could be found.
|
||||
#
|
||||
function dom0_ip()
|
||||
dom0_ip()
|
||||
{
|
||||
local nd=${netdev:-eth0}
|
||||
local result=$(ip_of "$nd")
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
#============================================================================
|
||||
# /etc/xen/vif-nat
|
||||
#
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
#============================================================================
|
||||
# /etc/xen/vif-route
|
||||
#
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
|
||||
dir=$(dirname "$0")
|
||||
. "$dir/vtpm-hotplug-common.sh"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
|
||||
# This scripts must be called the following way:
|
||||
# vtpm-delete <domain name>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#! /bin/sh
|
||||
#! /bin/bash
|
||||
|
||||
PATH=/etc/xen/scripts:$PATH
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#! /bin/sh
|
||||
#! /bin/bash
|
||||
|
||||
dir=$(dirname "$0")
|
||||
. "$dir/xen-hotplug-common.sh"
|
||||
|
||||