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

« back to all changes in this revision

Viewing changes to debian/virtualbox-ose.postinst

  • Committer: Bazaar Package Importer
  • Author(s): Felix Geyer
  • Date: 2009-10-13 23:06:00 UTC
  • mfrom: (0.3.2 upstream) (0.1.12 sid)
  • Revision ID: james.westby@ubuntu.com-20091013230600-xhu2pwizq0wo63l9
Tags: 3.0.8-dfsg-1ubuntu1
* Merge from debian unstable (LP: #444812), 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
* Try to remove existing dkms modules before adding the new modules
  (LP: #434503)
  - debian/virtualbox-ose-source.postinst
  - debian/virtualbox-ose-guest-source.postinst
* Don't fail if dkms modules have already been removed
  - debian/virtualbox-ose-source.prerm
  - debian/virtualbox-ose-guest-source.prerm

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
set -e
4
4
 
 
5
#DEBHELPER#
 
6
 
5
7
case "${1}" in
6
8
        configure)
7
 
                # Adding vboxusers group
8
 
                if ! getent group vboxusers > /dev/null
9
 
                then
10
 
                        if [ -x /usr/sbin/addgroup ]
11
 
                        then
12
 
                                addgroup --quiet --system vboxusers
 
9
                # only restart if VirtualBox isn't running
 
10
                if test -x /etc/init.d/virtualbox-ose && ! pidof VBoxSVC > /dev/null; then
 
11
                        if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
 
12
                                invoke-rc.d virtualbox-ose restart || true
 
13
                        else
 
14
                                /etc/init.d/virtualbox-ose restart || true
13
15
                        fi
14
16
                fi
15
 
 
16
 
                # In case the system is running without inotify tell udev to
17
 
                # reload the rules
18
 
                if [ -x /sbin/udevcontrol ]
19
 
                then
20
 
                        udevcontrol reload_rules || true
21
 
                fi
22
17
                ;;
23
 
 
 
18
        
24
19
        abort-upgrade|abort-deconfigure|abort-remove)
25
 
 
 
20
                
26
21
                ;;
27
 
 
 
22
        
28
23
        *)
29
24
                echo "${0} called with unknown argument \`${1}'" 1>&2
30
25
                exit 1
31
26
                ;;
32
27
esac
33
 
 
34
 
#DEBHELPER#