Magellan Linux

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

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

revision 229 by niro, Thu Jun 28 16:48:21 2007 UTC revision 520 by niro, Sat Mar 22 20:19:30 2008 UTC
# Line 1  Line 1 
1  #!/bin/bash  #!/bin/bash
2  # $Header: /root/magellan-cvs/src/virtualbox/virtualbox-config.sh,v 1.5 2007-06-28 16:48:21 niro Exp $  # $Header: /root/magellan-cvs/src/virtualbox/virtualbox-config.sh,v 1.8 2008-03-22 20:19:30 niro Exp $
3  # Configures virtualbox for Magellan-Linux  # Configures virtualbox for Magellan-Linux
4    
5  LIBDIR=/usr/lib  LIBDIR=/usr/lib
# Line 47  fi Line 47  fi
47  if [[ -f /lib/modules/${KERNEL_VERSION}/misc/${VBOXMODULE} ]]  if [[ -f /lib/modules/${KERNEL_VERSION}/misc/${VBOXMODULE} ]]
48  then  then
49   mecho "Removing old module ..."   mecho "Removing old module ..."
50     # try to unload the module
51     if [[ -n $(grep "${VBOXMODULE} " /proc/modules 2> /dev/null) ]]
52     then
53     modprobe -r ${VBOXMODULE/.ko/}
54     fi
55   rm -f /lib/modules/${KERNEL_VERSION}/misc/${VBOXMODULE}   rm -f /lib/modules/${KERNEL_VERSION}/misc/${VBOXMODULE}
56  fi  fi
57    
# Line 70  then Line 75  then
75  fi  fi
76    
77  # load the module  # load the module
78  if [[ xx$(uname -r) = x${KERNEL_VERSION} ]]  if [[ x$(uname -r) = x${KERNEL_VERSION} ]]
79  then  then
80   mecho "Loading kernel-module ${VBOXMODULE} ..."   mecho "Loading kernel-module ${VBOXMODULE} ..."
81   modprobe $(basename ${VBOXMODULE} .ko)   modprobe $(basename ${VBOXMODULE} .ko)
# Line 84  fi Line 89  fi
89    
90  echo  echo
91  mecho "Virtualbox is now configured for your system."  mecho "Virtualbox is now configured for your system."
92  mecho "Do not forget to add you users to the 'virtualbox' group."  mecho "Do not forget to add your users to the 'virtualbox' group."
93  echo  echo
94    
95  exit 0  exit 0

Legend:
Removed from v.229  
changed lines
  Added in v.520