Magellan Linux

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

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

revision 552 by niro, Thu Mar 27 14:14:30 2008 UTC revision 676 by niro, Tue Sep 9 16:27:51 2008 UTC
# Line 1  Line 1 
1  #!/bin/bash  #!/bin/bash
2  # $Header: /root/magellan-cvs/src/virtualbox/virtualbox-wrapper.sh,v 1.4 2008-03-27 14:14:30 niro Exp $  # $Header: /root/magellan-cvs/src/virtualbox/virtualbox-wrapper.sh,v 1.6 2008-09-09 16:27:51 niro Exp $
3  # Wrapper for virtual for Magellan-Linux  # Wrapper for virtual for Magellan-Linux
4    
5  LIBDIR=/usr/lib  LIBDIR=/usr/lib
# Line 22  if [[ ! -w /dev/vboxdrv ]] Line 22  if [[ ! -w /dev/vboxdrv ]]
22  then  then
23   if [[ ! -z ${DISPLAY} ]]   if [[ ! -z ${DISPLAY} ]]
24   then   then
25   dialog() { xterm -e "echo -e \"$@\"; echo; echo \"Press [Enter] to continue ...\"; read"; }   dialog() { xterm -T "VirtualBox" -e "echo -e \"$@\"; echo; echo \"Press [Enter] to continue ...\"; read"; }
26   [[ -x /usr/bin/xmessage ]] && dialog() { echo -e "$@" | /usr/bin/xmessage -center -button cancel -file -; }   [[ -x /usr/bin/xmessage ]] && dialog() { echo -e "$@" | /usr/bin/xmessage -center -button cancel -file -; }
27   [[ -x /usr/bin/Xdialog ]] && dialog() { /usr/bin/Xdialog --infobox "$@" 0 0 --no-ok --center; }   [[ -x /usr/bin/Xdialog ]] && dialog() { /usr/bin/Xdialog --no-ok --center --infobox "$@" 0 0; }
28    
29   dialog "Please make sure that you have the virtualbox kernel module installed and loaded.\n" \   dialog "Please make sure that you have the virtualbox kernel module installed and loaded
30   "Run 'virtualbox-config' to get the kernel module compiled and installed."  Run 'virtualbox-config' to get the kernel module compiled and installed."
31   fi   fi
32    
33   echo -e ${COLRED}"Please make sure that you have the virtualbox kernel module installed and loaded."${COLDEFAULT}   echo -e ${COLRED}"Please make sure that you have the virtualbox kernel module installed and loaded."${COLDEFAULT}
# Line 58  ${INSTDIR}/${XPCOM_DAEMON} --daemonize > Line 58  ${INSTDIR}/${XPCOM_DAEMON} --daemonize >
58  # start the proper application  # start the proper application
59  case $(basename $0) in  case $(basename $0) in
60   virtualbox)   virtualbox)
61     exec ${INSTDIR}/VirtualBox3 $*
62     ;;
63     virtualbox-qt4)
64   exec ${INSTDIR}/VirtualBox $*   exec ${INSTDIR}/VirtualBox $*
65   ;;   ;;
66   vboxmanage)   vboxmanage)
# Line 69  case $(basename $0) in Line 72  case $(basename $0) in
72   vboxbfe)   vboxbfe)
73   exec ${INSTDIR}/VBoxBFE $*   exec ${INSTDIR}/VBoxBFE $*
74   ;;   ;;
75     vboxheadless)
76     exec ${INSTDIR}/VBoxHeadless $*
77     ;;
78   *)   *)
79   echo -e ${COLRED}"Error: Unknown application - $(basename $0)"${COLDEFAULT}   echo -e ${COLRED}"Error: Unknown application - $(basename $0)"${COLDEFAULT}
80   exit 1   exit 1

Legend:
Removed from v.552  
changed lines
  Added in v.676