3 BINFILE=$(basename "$0")
4 VBOXDIR=/usr/lib/VirtualBox
5 [ ! -d "$VBOXDIR" ] && VBOXDIR=/usr/lib64/VirtualBox
8 if [ ! -z "$DISPLAY" ] && [ -x /usr/bin/gxmessage ]; then
11 gxmessage --center --buttons GTK_STOCK_OK -wrap -geometry 400x150 -name $BINFILE `echo -e $1`
18 if [ ! -d "$VBOXDIR" ]; then
19 show_message "Can't find VritualBox libraries! Can't continue!.\nCorrect this situation or contact with your system administrator."
23 if [ ! -c /dev/vboxdrv ]; then
24 show_message "Special character device /dev/vboxdrv doesn't exists!\nCheck your installation and if vboxdrv kernel module is loaded."
28 if [ ! -w /dev/vboxdrv ]; then
29 show_message "You don't have write access to /dev/vboxdrv!\nCorrect this situation or contact with your system administrator."
33 LD_LIBRARY_PATH=$VBOXDIR $VBOXDIR/$BINFILE ${1:+"$@"}