diff options
author | 2013-07-23 05:36:19 +0000 | |
---|---|---|
committer | 2013-07-23 05:36:19 +0000 | |
commit | c1b04f11dcbf1cae8122ccec364d71df0e2203b1 (patch) | |
tree | 1471aee03c8c99a4ef94792a5a494ac0c66b3deb /app-emulation/xen-tools/files | |
parent | Version bump. (diff) | |
download | historical-c1b04f11dcbf1cae8122ccec364d71df0e2203b1.tar.gz historical-c1b04f11dcbf1cae8122ccec364d71df0e2203b1.tar.bz2 historical-c1b04f11dcbf1cae8122ccec364d71df0e2203b1.zip |
Correct xendomains.init(s) to POSIX compliant, fixes Bug #477824
Package-Manager: portage-2.1.11.63/cvs/Linux x86_64
Manifest-Sign-Key: 0xB8072B0D
Diffstat (limited to 'app-emulation/xen-tools/files')
-rwxr-xr-x | app-emulation/xen-tools/files/xendomains.initd-r1 | 10 | ||||
-rw-r--r-- | app-emulation/xen-tools/files/xendomains.initd-r2 | 10 |
2 files changed, 10 insertions, 10 deletions
diff --git a/app-emulation/xen-tools/files/xendomains.initd-r1 b/app-emulation/xen-tools/files/xendomains.initd-r1 index 248cf6cd2ae7..e9a117878f55 100755 --- a/app-emulation/xen-tools/files/xendomains.initd-r1 +++ b/app-emulation/xen-tools/files/xendomains.initd-r1 @@ -1,7 +1,7 @@ #!/sbin/runscript # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen-tools/files/xendomains.initd-r1,v 1.3 2013/02/24 10:39:11 idella4 Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen-tools/files/xendomains.initd-r1,v 1.4 2013/07/23 05:35:54 idella4 Exp $ extra_commands="status" @@ -13,7 +13,7 @@ depend() { get_domname() { local name_from_file=$(sed -rn 's/^name\W*=\W*\"?([[:alnum:]_\.-]+)\"?\W*;?/\1/p' "${1}" | tail -n 1) - if [[ -z ${name_from_file} ]] ; then + if [ -z ${name_from_file} ] ; then basename "${1}" else echo ${name_from_file} @@ -25,7 +25,7 @@ is_running() { } using_screen() { - [[ "${SCREEN}" == "yes" || "${SCREEN}" == "YES" ]] + [ "${SCREEN}" == "yes" || "${SCREEN}" == "YES" ] } set_screen_cmd() { @@ -45,7 +45,7 @@ start() { && ${screen_cmd} logfile flush ${SCREEN_LOG_INTERVAL:-1} \ && ${screen_cmd} log on \ && ${screen_cmd} deflog on ) >/dev/null - if [[ $? -ne 0 ]] ; then + if [ $? -ne 0 ] ; then eend 1 return 1 else @@ -76,7 +76,7 @@ stop() { # Stop all domains with config files in AUTODIR. DOMAINS="$(ls "${AUTODIR:=/etc/xen/auto}/"* 2>/dev/null | sort -r)" - if [[ "$PARALLEL_SHUTDOWN" = "yes" ]] ; then + if [[ "$PARALLEL_SHUTDOWN" == "yes" ]] ; then for dom in $DOMAINS ; do name=$(get_domname ${dom}) if is_running ${name} ; then diff --git a/app-emulation/xen-tools/files/xendomains.initd-r2 b/app-emulation/xen-tools/files/xendomains.initd-r2 index e225b76ba572..e4d4dba1dc7b 100644 --- a/app-emulation/xen-tools/files/xendomains.initd-r2 +++ b/app-emulation/xen-tools/files/xendomains.initd-r2 @@ -1,7 +1,7 @@ #!/sbin/runscript # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen-tools/files/xendomains.initd-r2,v 1.6 2013/02/24 10:39:11 idella4 Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen-tools/files/xendomains.initd-r2,v 1.7 2013/07/23 05:35:54 idella4 Exp $ extra_commands="status" @@ -13,7 +13,7 @@ depend() { get_domname() { local name_from_file=$(sed -rn 's/^name\W*=\W*\"?([[:alnum:]_\.-]+)\"?\W*;?/\1/p' "${1}" | tail -n 1) - if [[ -z ${name_from_file} ]] ; then + if [ -z ${name_from_file} ] ; then basename "${1}" else echo ${name_from_file} @@ -25,7 +25,7 @@ is_running() { } using_screen() { - [[ "${SCREEN}" == "yes" || "${SCREEN}" == "YES" ]] + [ "${SCREEN}" == "yes" || "${SCREEN}" == "YES" ] } set_screen_cmd() { @@ -46,7 +46,7 @@ start() { && ${screen_cmd} logfile flush ${SCREEN_LOG_INTERVAL:-1} \ && ${screen_cmd} log on \ && ${screen_cmd} deflog on ) >/dev/null - if [[ $? -ne 0 ]] ; then + if [ $? -ne 0 ] ; then eend 1 return 1 else @@ -77,7 +77,7 @@ stop() { # Stop all domains with config files in AUTODIR. DOMAINS="$(ls "${AUTODIR:=/etc/xen/auto}/"* 2>/dev/null | sort -r)" - if [[ "$PARALLEL_SHUTDOWN" = "yes" ]] ; then + if [[ "$PARALLEL_SHUTDOWN" == "yes" ]] ; then for dom in $DOMAINS ; do name=$(get_domname ${dom}) if is_running ${name} ; then |