]> git.pld-linux.org Git - packages/VirtualBox.git/blobdiff - VirtualBox.sh
- fix unresolved symbols while building kernel modules
[packages/VirtualBox.git] / VirtualBox.sh
index 3f45e904e5458ed1868880e7dd74b401b7f1a709..f3d3c58805afe3256c67cbe74caeeeb7101f192e 100644 (file)
@@ -1,17 +1,13 @@
 #!/bin/sh
-
 BINFILE=$(basename "$0")
 VBOXDIR=/usr/lib/VirtualBox
 [ ! -d "$VBOXDIR" ] && VBOXDIR=/usr/lib64/VirtualBox
 
 show_message() {
        if [ ! -z "$DISPLAY" ] && [ -x /usr/bin/gxmessage ]; then
-               BAK=$IFS
-               IFS=""
-               gxmessage --center --buttons GTK_STOCK_OK -wrap -geometry 400x150 -name $BINFILE `echo -e $1`
-               IFS=$BAK
+               echo -e "$1" | gxmessage --center --buttons GTK_STOCK_OK -wrap -geometry 400x150 -name $BINFILE -file -
        else
-               echo -e $1
+               echo -e "$1"
        fi
 }
 
@@ -30,4 +26,5 @@ if [ ! -w /dev/vboxdrv ]; then
        exit 1
 fi
 
-LD_LIBRARY_PATH=$VBOXDIR $VBOXDIR/$BINFILE ${1:+"$@"}
+export LD_LIBRARY_PATH=$VBOXDIR
+exec $VBOXDIR/$BINFILE ${1:+"$@"}
This page took 0.064151 seconds and 4 git commands to generate.