Magellan Linux

Diff of /trunk/virtualbox/virtualbox-wrapper.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 129 by niro, Fri Apr 13 22:52:00 2007 UTC revision 130 by niro, Sat Apr 14 14:11:02 2007 UTC
# Line 1  Line 1 
1  #!/bin/bash  #!/bin/bash
2  # $Header: /root/magellan-cvs/src/virtualbox/virtualbox-wrapper.sh,v 1.2 2007-04-13 22:52:00 niro Exp $  # $Header: /root/magellan-cvs/src/virtualbox/virtualbox-wrapper.sh,v 1.3 2007-04-14 14:11:02 niro Exp $
3  # Wrapper for virtual for Magellan-Linux  # Wrapper for virtual for Magellan-Linux
4    
5  LIBDIR=/usr/lib  LIBDIR=/usr/lib
# Line 8  XPCOM_DAEMON=VBoxSVC Line 8  XPCOM_DAEMON=VBoxSVC
8  VBOXCONFIG=$HOME/.VirtualBox  VBOXCONFIG=$HOME/.VirtualBox
9  VBOXLOG=${VBOXCONFIG}/log  VBOXLOG=${VBOXCONFIG}/log
10    
11    COLRED="\033[1;6m\033[31m"
12    COLDEFAULT="\033[0m"
13    
14    if [[ ${NOCOLORS} = true ]]
15    then
16     COLRED=""
17     COLDEFAULT=""
18    fi
19    
20  # check for the vbox module  # check for the vbox module
21  if [[ ! -w /dev/vboxdrv ]]  if [[ ! -w /dev/vboxdrv ]]
22  then  then
23   echo "Please make sure that you have the virtualbox kernel module installed and loaded."   echo -e ${COLRED}"Please make sure that you have the virtualbox kernel module installed and loaded."${COLDEFAULT}
24   echo "Run 'virtualbox-config' to get the kernel module compiled and installed."   echo -e ${COLRED}"Run 'virtualbox-config' to get the kernel module compiled and installed."${COLDEFAULT}
25   exit 1   exit 1
26  fi  fi
27    
# Line 51  case $(basename $0) in Line 60  case $(basename $0) in
60   exec ${INSTDIR}/VBoxBFE $*   exec ${INSTDIR}/VBoxBFE $*
61   ;;   ;;
62   *)   *)
63   echo "Error: Unknown application - $(basename $0)"   echo -e ${COLRED}"Error: Unknown application - $(basename $0)"${COLDEFAULT}
64   exit 1   exit 1
65   ;;   ;;
66  esac  esac

Legend:
Removed from v.129  
changed lines
  Added in v.130