--- trunk/virtualbox/virtualbox-wrapper.sh 2007/04/13 22:52:00 128 +++ trunk/virtualbox/virtualbox-wrapper.sh 2007/04/14 14:11:02 130 @@ -1,5 +1,5 @@ #!/bin/bash -# $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 $ # Wrapper for virtual for Magellan-Linux LIBDIR=/usr/lib @@ -8,11 +8,20 @@ VBOXCONFIG=$HOME/.VirtualBox VBOXLOG=${VBOXCONFIG}/log +COLRED="\033[1;6m\033[31m" +COLDEFAULT="\033[0m" + +if [[ ${NOCOLORS} = true ]] +then + COLRED="" + COLDEFAULT="" +fi + # check for the vbox module if [[ ! -w /dev/vboxdrv ]] then - echo "Please make sure that you have the virtualbox kernel module installed and loaded." - echo "Run 'virtualbox-config' to get the kernel module compiled and installed." + echo -e ${COLRED}"Please make sure that you have the virtualbox kernel module installed and loaded."${COLDEFAULT} + echo -e ${COLRED}"Run 'virtualbox-config' to get the kernel module compiled and installed."${COLDEFAULT} exit 1 fi @@ -51,7 +60,7 @@ exec ${INSTDIR}/VBoxBFE $* ;; *) - echo "Error: Unknown application - $(basename $0)" + echo -e ${COLRED}"Error: Unknown application - $(basename $0)"${COLDEFAULT} exit 1 ;; esac