~ubuntu-branches/ubuntu/karmic/virtualbox-ose/karmic-updates

« back to all changes in this revision

Viewing changes to debian/virtualbox-ose-source.postinst

  • Committer: Bazaar Package Importer
  • Author(s): Felix Geyer
  • Date: 2009-09-14 18:25:07 UTC
  • mfrom: (0.4.1 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090914182507-c98g07mq16hjmn6d
Tags: 3.0.6-dfsg-1ubuntu1
* Merge from debian unstable (LP: #429697), remaining changes:
  - Enable DKMS support on virtualbox host and guest modules (LP: #267097)
    - Drop virtualbox-ose{-guest,}-modules-* package templates
    - Recommend *-source instead of *-modules packages
    - Replace error messages related to missing/mismatched
      kernel module accordingly
  - Autoload kernel module
    - LOAD_VBOXDRV_MODULE=1 in virtualbox-ose.default
  - Disable update action
    - patches/u01-disable-update-action.dpatch
  - Virtualbox should go in Accessories, not in System tools (LP: #288590)
    - virtualbox-ose-qt.files/virtualbox-ose.desktop
  - Add apport hook
    - virtualbox-ose.files/source_virtualbox-ose.py
    - virtualbox-ose.install
  - Add launchpad integration
    - control
    - lpi-bug.xpm
    - patches/u02-lp-integration.dpatch
  - virtualbox, virtualbox-* (names of the upstream proprietary packages)
    conflict with virtualbox-ose (LP: #379878)
* Make debug package depend on normal or guest utils package
* Drop patches/22-pulseaudio-stubs.dpatch (applied upstream)
* Rename Ubuntu specific patches to uXX-*.dpatch
* Fix lintian warnings in maintainer scripts

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh
2
2
# Copyright (C) 2008 Mario Limonciello
3
3
 
 
4
set -e
 
5
 
 
6
#DEBHELPER#
 
7
 
4
8
CVERSION=`dpkg-query -W -f='${Version}' virtualbox-ose-source | awk -F "-" '{print $1}' | cut -d\: -f2`
5
9
 
6
10
case "$1" in
8
12
                #Refresh groups
9
13
                if [ -x /etc/init.d/udev ]; then
10
14
                        if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
11
 
                                invoke-rc.d udev reload || /bin/true
 
15
                                invoke-rc.d udev reload || true
12
16
                        else
13
 
                                /etc/init.d/udev reload || /bin/true
 
17
                                /etc/init.d/udev reload || true
14
18
                        fi
15
19
                fi
16
20
 
30
34
                echo "Done."
31
35
 
32
36
                #restart VBox service due to new modules
33
 
        if [ -f /etc/default/virtualbox-ose ] ; then
34
 
            . /etc/default/virtualbox-ose
35
 
        fi
 
37
                if [ -f /etc/default/virtualbox-ose ] ; then
 
38
                        . /etc/default/virtualbox-ose
 
39
                fi
36
40
                if [ "$LOAD_VBOXDRV_MODULE" = 1 ]; then
37
 
            if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
38
 
                        invoke-rc.d virtualbox-ose restart || /bin/true
39
 
                    else
40
 
                            /etc/init.d/virtualbox-ose restart || /bin/true
41
 
                fi
42
 
        fi
 
41
                        if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
 
42
                                invoke-rc.d virtualbox-ose restart || true
 
43
                        else
 
44
                                /etc/init.d/virtualbox-ose restart || true
 
45
                        fi
 
46
                fi
43
47
 
44
48
        ;;
45
49
esac
46
 
#DEBHELPER#