VirtualBox

source: vbox/trunk/src/VBox/Installer/linux/debian/prerm.in@ 57969

Last change on this file since 57969 was 57969, checked in by vboxsync, 9 years ago

Installers/linux: drop DKMS support.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.3 KB
Line 
1#!/bin/sh
2
3#
4# Copyright (C) 2006-2015 Oracle Corporation
5#
6# This file is part of VirtualBox Open Source Edition (OSE), as
7# available from http://www.virtualbox.org. This file is free software;
8# you can redistribute it and/or modify it under the terms of the GNU
9# General Public License (GPL) as published by the Free Software
10# Foundation, in version 2 as it comes in the "COPYING" file of the
11# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
12# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
13#
14
15# we can be called with the following arguments (6.5 of Debian policy):
16# upgrade: (new version): upgrade to a new version
17# failed-upgrade: (our version): failed to upgrade
18# remove: (our version): remove this package
19# deconfigure: (our version): removing conflicting version
20
21rm -f /etc/udev/rules.d/60-vboxdrv.rules
22rm -f /etc/vbox/license_agreed
23rm -f /etc/vbox/module_not_compiled
24
25# defaults
26[ -r /etc/default/virtualbox ] && . /etc/default/virtualbox
27
28. /usr/share/debconf/confmodule
29db_version 2.0
30db_capb backup
31
32if ! /usr/lib/virtualbox/prerm-common.sh > /dev/null 2>&1; then
33 if [ "$1" != "failed-upgrade" ]; then
34 db_fset virtualbox/old-running seen false || true
35 db_input critical virtualbox/old-running || true
36 db_go || true
37 fi
38 exit 1
39fi
40
41#DEBHELPER#
42
43exit 0
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette