summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2013-02-17 21:54:51 +0000
committerMike Frysinger <vapier@gentoo.org>2013-02-17 21:54:51 +0000
commitab2aa600081ae2370f5a4285a95e4f7308135dcd (patch)
tree866f127c9e227ac9931598fbb8bbaa453a827c76 /app-emulation/qemu/files
parentversion bump wrt #452310 (diff)
downloadgentoo-2-ab2aa600081ae2370f5a4285a95e4f7308135dcd.tar.gz
gentoo-2-ab2aa600081ae2370f5a4285a95e4f7308135dcd.tar.bz2
gentoo-2-ab2aa600081ae2370f5a4285a95e4f7308135dcd.zip
Fix bashisms in init.d scripts.
(Portage version: 2.2.0_alpha163/cvs/Linux x86_64, signed Manifest commit with key FB7C4156)
Diffstat (limited to 'app-emulation/qemu/files')
-rw-r--r--app-emulation/qemu/files/qemu-binfmt.initd12
-rw-r--r--app-emulation/qemu/files/qemu-binfmt.initd-r114
2 files changed, 13 insertions, 13 deletions
diff --git a/app-emulation/qemu/files/qemu-binfmt.initd b/app-emulation/qemu/files/qemu-binfmt.initd
index 72044bf8e5bf..7faef2733aa9 100644
--- a/app-emulation/qemu/files/qemu-binfmt.initd
+++ b/app-emulation/qemu/files/qemu-binfmt.initd
@@ -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/qemu/files/qemu-binfmt.initd,v 1.1 2013/01/12 04:56:15 cardoe Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/qemu/files/qemu-binfmt.initd,v 1.2 2013/02/17 21:54:51 vapier Exp $
# enable automatic i386/ARM/M68K/MIPS/SPARC/PPC/s390 program execution by the kernel
@@ -12,16 +12,16 @@ depend() {
start() {
ebegin "Registering qemu-user binaries"
- if [[ ! -d /proc/sys/fs/binfmt_misc ]] ; then
+ if [ ! -d /proc/sys/fs/binfmt_misc ] ; then
eerror "You need support for \"misc binaries\" in your kernel!"
eend 1
fi
- if [[ $(mount | grep -c binfmt_misc) -eq 0 ]] ; then
- mount -t binfmt_misc binfmt_misc /proc/sys/fs/binfmt_misc &> /dev/null
+ if [ $(mount | grep -c binfmt_misc) -eq 0 ] ; then
+ mount -t binfmt_misc binfmt_misc /proc/sys/fs/binfmt_misc >/dev/null 2>&1
local result=$?
- if [[ $result -ne 0 ]] ; then
+ if [ $result -ne 0 ] ; then
eend $result
fi
fi
@@ -119,7 +119,7 @@ stop() {
arches="${arches} s390x"
for a in ${arches}; do
- if [[ -f /proc/sys/fs/binfmt_misc/$a ]] ; then
+ if [ -f /proc/sys/fs/binfmt_misc/$a ] ; then
echo '-1' > /proc/sys/fs/binfmt_misc/$a
fi
done
diff --git a/app-emulation/qemu/files/qemu-binfmt.initd-r1 b/app-emulation/qemu/files/qemu-binfmt.initd-r1
index d2c0b7395b63..53c7ca00234e 100644
--- a/app-emulation/qemu/files/qemu-binfmt.initd-r1
+++ b/app-emulation/qemu/files/qemu-binfmt.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/qemu/files/qemu-binfmt.initd-r1,v 1.1 2013/01/19 03:42:06 cardoe Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/qemu/files/qemu-binfmt.initd-r1,v 1.2 2013/02/17 21:54:51 vapier Exp $
# enable automatic i386/ARM/M68K/MIPS/SPARC/PPC/s390 program execution by the kernel
@@ -12,21 +12,21 @@ depend() {
start() {
ebegin "Registering qemu-user binaries"
- if [[ ! -d /proc/sys/fs/binfmt_misc ]] ; then
+ if [ ! -d /proc/sys/fs/binfmt_misc ] ; then
/sbin/modprobe binfmt_misc
fi
- if [[ ! -d /proc/sys/fs/binfmt_misc ]] ; then
+ if [ ! -d /proc/sys/fs/binfmt_misc ] ; then
eerror "You need \"binfmt_misc\" support in your kernel."
eend 1
return 1
fi
- if [[ ! -f /proc/sys/fs/binfmt_misc/register ]] ; then
- mount -t binfmt_misc binfmt_misc /proc/sys/fs/binfmt_misc &> /dev/null
+ if [ ! -f /proc/sys/fs/binfmt_misc/register ] ; then
+ mount -t binfmt_misc binfmt_misc /proc/sys/fs/binfmt_misc >/dev/null 2>&1
local result=$?
- if [[ $result -ne 0 ]] ; then
+ if [ $result -ne 0 ] ; then
eend $result
return $result
fi
@@ -125,7 +125,7 @@ stop() {
arches="${arches} s390x"
for a in ${arches}; do
- if [[ -f /proc/sys/fs/binfmt_misc/$a ]] ; then
+ if [ -f /proc/sys/fs/binfmt_misc/$a ] ; then
echo '-1' > /proc/sys/fs/binfmt_misc/$a
fi
done