summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabio Rossi <rossi.f@inwind.it>2020-05-02 23:56:00 +0200
committerFabio Rossi <rossi.f@inwind.it>2020-05-03 00:01:52 +0200
commit472ed079b9cbdfff1f5169b766ee5d6069aaf31a (patch)
tree8ee229c19f408325c1cee6e40aad54d3777cf677
parentapp-emulation/vmware-modules: fix check for kernel option (diff)
downloadvmware-472ed079b9cbdfff1f5169b766ee5d6069aaf31a.tar.gz
vmware-472ed079b9cbdfff1f5169b766ee5d6069aaf31a.tar.bz2
vmware-472ed079b9cbdfff1f5169b766ee5d6069aaf31a.zip
init script should be POSIX compliantHEADmaster
openrc aims at using a POSIX compliance sh, replaced a bashism. This fixes issue #50 on github Signed-off-by: Fabio Rossi <rossi.f@inwind.it>
-rw-r--r--app-emulation/vmware-player/files/vmware-12.5.rc8
-rw-r--r--app-emulation/vmware-workstation/files/vmware-12.5.rc8
2 files changed, 8 insertions, 8 deletions
diff --git a/app-emulation/vmware-player/files/vmware-12.5.rc b/app-emulation/vmware-player/files/vmware-12.5.rc
index a9d6f22..0bb5ec8 100644
--- a/app-emulation/vmware-player/files/vmware-12.5.rc
+++ b/app-emulation/vmware-player/files/vmware-12.5.rc
@@ -21,7 +21,7 @@ start() {
for mod in /lib/modules/$(uname -r)/misc/vmci.ko \
/lib/modules/$(uname -r)/kernel/drivers/misc/vmw_vmci/vmw_vmci.ko ;
do
- if [[ -f "${mod}" ]] ; then
+ if [ -f "${mod}" ] ; then
modprobe -v $(basename "${mod}" .ko)
eend $?
break
@@ -35,7 +35,7 @@ start() {
for mod in /lib/modules/$(uname -r)/misc/vsock.ko \
/lib/modules/$(uname -r)/kernel/net/vmw_vsock/vmw_vsock_vmci_transport.ko ;
do
- if [[ -f "${mod}" ]] ; then
+ if [ -f "${mod}" ] ; then
modprobe -v $(basename "${mod}" .ko)
eend $?
break
@@ -68,7 +68,7 @@ stop() {
for mod in /lib/modules/$(uname -r)/misc/vsock.ko \
/lib/modules/$(uname -r)/kernel/net/vmw_vsock/vmw_vsock_vmci_transport.ko ;
do
- if [[ -f "${mod}" ]] ; then
+ if [ -f "${mod}" ] ; then
modprobe -rv $(basename "${mod}" .ko)
eend $?
break
@@ -82,7 +82,7 @@ stop() {
for mod in /lib/modules/$(uname -r)/misc/vmci.ko \
/lib/modules/$(uname -r)/kernel/drivers/misc/vmw_vmci/vmw_vmci.ko ;
do
- if [[ -f "${mod}" ]] ; then
+ if [ -f "${mod}" ] ; then
modprobe -rv $(basename "${mod}" .ko)
eend $?
break
diff --git a/app-emulation/vmware-workstation/files/vmware-12.5.rc b/app-emulation/vmware-workstation/files/vmware-12.5.rc
index a9d6f22..0bb5ec8 100644
--- a/app-emulation/vmware-workstation/files/vmware-12.5.rc
+++ b/app-emulation/vmware-workstation/files/vmware-12.5.rc
@@ -21,7 +21,7 @@ start() {
for mod in /lib/modules/$(uname -r)/misc/vmci.ko \
/lib/modules/$(uname -r)/kernel/drivers/misc/vmw_vmci/vmw_vmci.ko ;
do
- if [[ -f "${mod}" ]] ; then
+ if [ -f "${mod}" ] ; then
modprobe -v $(basename "${mod}" .ko)
eend $?
break
@@ -35,7 +35,7 @@ start() {
for mod in /lib/modules/$(uname -r)/misc/vsock.ko \
/lib/modules/$(uname -r)/kernel/net/vmw_vsock/vmw_vsock_vmci_transport.ko ;
do
- if [[ -f "${mod}" ]] ; then
+ if [ -f "${mod}" ] ; then
modprobe -v $(basename "${mod}" .ko)
eend $?
break
@@ -68,7 +68,7 @@ stop() {
for mod in /lib/modules/$(uname -r)/misc/vsock.ko \
/lib/modules/$(uname -r)/kernel/net/vmw_vsock/vmw_vsock_vmci_transport.ko ;
do
- if [[ -f "${mod}" ]] ; then
+ if [ -f "${mod}" ] ; then
modprobe -rv $(basename "${mod}" .ko)
eend $?
break
@@ -82,7 +82,7 @@ stop() {
for mod in /lib/modules/$(uname -r)/misc/vmci.ko \
/lib/modules/$(uname -r)/kernel/drivers/misc/vmw_vmci/vmw_vmci.ko ;
do
- if [[ -f "${mod}" ]] ; then
+ if [ -f "${mod}" ] ; then
modprobe -rv $(basename "${mod}" .ko)
eend $?
break