Magellan Linux

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

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

revision 1379 by niro, Wed Jun 29 23:15:17 2011 UTC revision 1406 by niro, Mon Jul 4 16:53:05 2011 UTC
# Line 124  then Line 124  then
124   modprobe ${module}   modprobe ${module}
125   done   done
126    
127   if [ $(echo ${KERNEL_VERSION%%-*} | sed 's:\.::g') -ge 2631 ]   if [ $(echo ${KERNEL_VERSION%%-*} | sed 's:\.::g') -ge 2639 ]
128   then   then
129   # fixes NMI warnings with kernels >=2.6.31:   # fixes NMI warnings with kernels >=2.6.31:
130   # vboxdrv: Warning: 2.6.31+ kernel detected. Most likely the hardware performance   # vboxdrv: Warning: 2.6.31+ kernel detected. Most likely the hardware performance
131   # vboxdrv: counter framework which can generate NMIs is active.   # vboxdrv: counter framework which can generate NMIs is active.
132   mecho "Disabled hardware performance counter NMIs ..."   mecho "Disabled hardware performance counter NMIs ..."
133   echo 2 > /proc/sys/kernel/perf_counter_paranoid   echo 2 > /proc/sys/kernel/perf_event_paranoid
134   fi  
135   if [ $(echo ${KERNEL_VERSION%%-*} | sed 's:\.::g') -ge 2639 ]   elif [ $(echo ${KERNEL_VERSION%%-*} | sed 's:\.::g') -ge 2631 ]
136   then   then
137   # fixes NMI warnings with kernels >=2.6.31:   # fixes NMI warnings with kernels >=2.6.31:
138   # vboxdrv: Warning: 2.6.31+ kernel detected. Most likely the hardware performance   # vboxdrv: Warning: 2.6.31+ kernel detected. Most likely the hardware performance
139   # vboxdrv: counter framework which can generate NMIs is active.   # vboxdrv: counter framework which can generate NMIs is active.
140   mecho "Disabled hardware performance counter NMIs ..."   mecho "Disabled hardware performance counter NMIs ..."
141   echo 2 > /proc/sys/kernel/perf_event_paranoid   echo 2 > /proc/sys/kernel/perf_counter_paranoid
142   fi   fi
143  else  else
144   echo -e ${COLRED}   echo -e ${COLRED}
# Line 150  fi Line 150  fi
150    
151  echo  echo
152  mecho "Virtualbox is now configured for your system."  mecho "Virtualbox is now configured for your system."
153  mecho "Do not forget to add your users to the 'virtualbox' group."  mecho "Do not forget to add your users to the 'vboxusers' group."
154  echo  echo
155    
156  exit 0  exit 0

Legend:
Removed from v.1379  
changed lines
  Added in v.1406