~ubuntu-branches/ubuntu/vivid/virtualbox-ose/vivid

« back to all changes in this revision

Viewing changes to src/VBox/Installer/linux/vboxdrv.sh.in

  • Committer: Bazaar Package Importer
  • Author(s): Felix Geyer
  • Date: 2010-03-11 17:16:37 UTC
  • mfrom: (0.3.4 upstream) (0.4.8 sid)
  • Revision ID: james.westby@ubuntu.com-20100311171637-43z64ia3ccpj8vqn
Tags: 3.1.4-dfsg-2ubuntu1
* Merge from Debian unstable (LP: #528561), remaining changes:
  - VirtualBox should go in Accessories, not in System tools (LP: #288590)
    - debian/virtualbox-ose-qt.files/virtualbox-ose.desktop
  - Add Apport hook
    - debian/virtualbox-ose.files/source_virtualbox-ose.py
    - debian/virtualbox-ose.install
  - Add Launchpad integration
    - debian/control
    - debian/lpi-bug.xpm
    - debian/patches/u02-lp-integration.dpatch
  - Replace *-source packages with transitional packages for *-dkms
* Fix crash in vboxvideo_drm with kernel 2.6.33 / backported drm code
  (LP: #535297)
* Add a list of linux-headers packages to the apport hook
* Update debian/patches/u02-lp-integration.dpatch with a
  DEP-3 compliant header
* Add ${misc:Depends} to virtualbox-ose-source and virtualbox-ose-guest-source
  Depends

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
LOG="/var/log/vbox-install.log"
37
37
NOLSB=%NOLSB%
38
38
DEBIAN=%DEBIAN%
 
39
MODPROBE=/sbin/modprobe
 
40
 
 
41
if $MODPROBE -c | grep -q '^allow_unsupported_modules  *0'; then
 
42
  MODPROBE="$MODPROBE --allow-unsupported-modules"
 
43
fi
39
44
 
40
45
[ -f /lib/lsb/init-functions ] || NOLSB=yes
41
46
[ -f /etc/vbox/vbox.cfg ] && . /etc/vbox/vbox.cfg
166
171
        if [ -e /proc/sys/kernel/perf_counter_paranoid ]; then
167
172
          echo 2 > /proc/sys/kernel/perf_counter_paranoid 
168
173
        fi
169
 
        if ! modprobe vboxdrv > /dev/null 2>&1; then
 
174
        if ! $MODPROBE vboxdrv > /dev/null 2>&1; then
170
175
            failure "modprobe vboxdrv failed. Please use 'dmesg' to find out why"
171
176
        fi
172
177
        sleep .2
198
203
        rmmod vboxdrv 2>/dev/null
199
204
        failure "Cannot change owner $GROUPNAME for device $DEVICE"
200
205
    fi
201
 
    if ! modprobe vboxnetflt > /dev/null 2>&1; then
 
206
    if ! $MODPROBE vboxnetflt > /dev/null 2>&1; then
202
207
        failure "modprobe vboxnetflt failed. Please use 'dmesg' to find out why"
203
208
    fi
204
 
    if ! modprobe vboxnetadp > /dev/null 2>&1; then
 
209
    if ! $MODPROBE vboxnetadp > /dev/null 2>&1; then
205
210
        failure "modprobe vboxnetadp failed. Please use 'dmesg' to find out why"
206
211
    fi
207
212
    succ_msg