summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorx-drum <x-drum@localhost>2007-08-13 23:26:41 +0000
committerx-drum <x-drum@localhost>2007-08-13 23:26:41 +0000
commit1bf28d13e4f3611bd182524217cc5d75f89538f6 (patch)
tree2be560b4f473cb7be4ef7a85f23f1b34dafba8e4 /app-emulation/virtualbox-bin/files
parentAdd repo_name to shut up warnings (diff)
downloadjokey-1bf28d13e4f3611bd182524217cc5d75f89538f6.tar.gz
jokey-1bf28d13e4f3611bd182524217cc5d75f89538f6.tar.bz2
jokey-1bf28d13e4f3611bd182524217cc5d75f89538f6.zip
app-emulation/virtualbox-bin: fix bashisms present in wrapper, thanks to drizzt
svn path=/trunk/; revision=258
Diffstat (limited to 'app-emulation/virtualbox-bin/files')
-rw-r--r--app-emulation/virtualbox-bin/files/virtualbox-bin-wrapper8
1 files changed, 4 insertions, 4 deletions
diff --git a/app-emulation/virtualbox-bin/files/virtualbox-bin-wrapper b/app-emulation/virtualbox-bin/files/virtualbox-bin-wrapper
index 79c4e3d..f92b67f 100644
--- a/app-emulation/virtualbox-bin/files/virtualbox-bin-wrapper
+++ b/app-emulation/virtualbox-bin/files/virtualbox-bin-wrapper
@@ -13,12 +13,12 @@ if [ "$1" = shutdown ]; then
exit 0
fi
-[ "$VBOX_USER_HOME" = "" ] && VBOX_USER_HOME="$HOME/.VirtualBox"
+[ -z "$VBOX_USER_HOME" ] && VBOX_USER_HOME="$HOME/.VirtualBox"
mkdir -p "$VBOX_USER_HOME"
LOG="$VBOX_USER_HOME/VBoxSVC.log"
-if [[ -e /proc/modules && ! -e /dev/vboxdrv ]] ; then
+if [ -e /proc/modules -a ! -e /dev/vboxdrv ] ; then
echo "Error: vboxdrv kernel module is not loaded..."
echo "Please load the module before starting VirtualBox."
exit 1
@@ -36,7 +36,7 @@ fi
export LD_LIBRARY_PATH="$INSTALL_DIR"
-if [ "$SERVER_PID" = "" ]; then
+if [ -z "$SERVER_PID" ]; then
rm -rf /tmp/.vbox-$USER-ipc
[ -f "$LOG.1" ] && mv "$LOG.1" "$LOG.2"
[ -f "$LOG.0" ] && mv "$LOG.0" "$LOG.1"
@@ -44,7 +44,7 @@ if [ "$SERVER_PID" = "" ]; then
/opt/VirtualBox/VBoxSVC --daemonize >"$LOG" 2>&1
fi
-APP=$( which $0 )
+APP=$( command -v "$0" )
APP=${APP##/*/}
case "$APP" in
virtualbox)