~ubuntu-branches/ubuntu/precise/virtualbox/precise-updates

« back to all changes in this revision

Viewing changes to debian/virtualbox.init

  • Committer: Bazaar Package Importer
  • Author(s): Felix Geyer
  • Date: 2011-07-04 13:02:31 UTC
  • mfrom: (3.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20110704130231-l843es6wqhx614n7
Tags: 4.0.10-dfsg-1ubuntu1
* Merge from Debian unstable, remaining changes:
  - Add Apport hook.
    - debian/virtualbox-ose.files/source_virtualbox-ose.py
    - debian/virtualbox-ose.install
  - Drop *-source packages.
* Add the Modaliases control field manually for maximum backportability.

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
        log_begin_msg "Starting VirtualBox kernel modules"
57
57
        
58
58
        if ! running vboxdrv; then
59
 
                # HACK: disable the hardware performance counter framework
60
 
                if [ -e /proc/sys/kernel/perf_counter_paranoid ]; then
61
 
                        if [ $(cat /proc/sys/kernel/perf_counter_paranoid) -ne 2 ]; then
62
 
                                log_warning_msg "Disabling the hardware performance counter framework"
63
 
                                echo 2 > /proc/sys/kernel/perf_counter_paranoid 
64
 
                        fi
65
 
                fi
66
 
                
67
59
                if ! modprobe vboxdrv > /dev/null 2>&1; then
68
60
                        if ! find /lib/modules/`uname -r` -name "vboxdrv\.*" 2>/dev/null|grep -q vboxdrv; then
69
61
                                log_failure_msg "No suitable module for running kernel found"