-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
debian: big resync with files in src/VBox/Installer/Linux/debian, this must have been broken for years doc: mention dropping of PCI passthrough src/VBox/Installer/linux: adapt to handle no longer present vboxpci.ko (without completely ripping it out) git-svn-id: http://www.virtualbox.org/svn/vbox/trunk@82441 cfe28804-0f27-0410-a406-dd0f0b0b656f
- Loading branch information
vboxsync
committed
Dec 5, 2019
1 parent
51dcd6f
commit 5178e47
Showing
16 changed files
with
325 additions
and
452 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
#!/bin/sh | ||
# $Id$ | ||
## @file | ||
# VirtualBox postinst | ||
# | ||
|
||
# | ||
# Copyright (C) 2006-2019 Oracle Corporation | ||
# | ||
# This file is part of VirtualBox Open Source Edition (OSE), as | ||
# available from http://www.virtualbox.org. This file is free software; | ||
# you can redistribute it and/or modify it under the terms of the GNU | ||
# General Public License (GPL) as published by the Free Software | ||
# Foundation, in version 2 as it comes in the "COPYING" file of the | ||
# VirtualBox OSE distribution. VirtualBox OSE is distributed in the | ||
# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. | ||
# | ||
|
||
# we can be called with the following arguments (6.5 of Debian policy): | ||
# configure: (our version): installing/configuring new version | ||
# abort-upgrade: (old version): upgrading to a new version failed | ||
# abort-remove: (our version): removing this package failed | ||
# abort-deconfigure: (our version): error during resolving conflicts | ||
|
||
## @todo Do we really gain anything from not just executing everything | ||
## unconditionally? | ||
|
||
LOG="/var/log/vbox-install.log" | ||
|
||
# defaults | ||
[ -r /etc/default/virtualbox ] && . /etc/default/virtualbox | ||
|
||
if [ "$1" = "configure" ]; then | ||
|
||
# for debconf | ||
. /usr/share/debconf/confmodule | ||
db_version 2.0 | ||
|
||
# remove old cruft | ||
if [ -f /etc/init.d/vboxdrv.sh ]; then | ||
echo "Found old version of /etc/init.d/vboxdrv.sh, removing." | ||
rm /etc/init.d/vboxdrv.sh | ||
update-rc.d vboxdrv.sh remove >/dev/null | ||
fi | ||
if [ -f /etc/vbox/vbox.cfg ]; then | ||
echo "Found old version of /etc/vbox/vbox.cfg, removing." | ||
rm /etc/vbox/vbox.cfg | ||
fi | ||
|
||
# create users groups (disable with INSTALL_NO_GROUP=1 in /etc/default/virtualbox) | ||
if [ "$INSTALL_NO_GROUP" != "1" ]; then | ||
db_input low virtualbox/group-vboxusers || true | ||
db_go || true | ||
addgroup --system vboxusers || true | ||
fi | ||
|
||
# The starters need to be Suid root. They drop the privileges before starting | ||
# the real frontend. | ||
if test -e /usr/lib/virtualbox/VirtualBoxVM; then | ||
if ! dpkg-statoverride --list /usr/lib/virtualbox/VirtualBoxVM > /dev/null 2>&1; then | ||
chmod 4511 /usr/lib/virtualbox/VirtualBoxVM | ||
fi | ||
else | ||
if ! dpkg-statoverride --list /usr/lib/virtualbox/VirtualBox > /dev/null 2>&1; then | ||
chmod 4511 /usr/lib/virtualbox/VirtualBox | ||
fi | ||
fi | ||
if ! dpkg-statoverride --list /usr/lib/virtualbox/VBoxHeadless > /dev/null 2>&1; then | ||
chmod 4511 /usr/lib/virtualbox/VBoxHeadless | ||
fi | ||
if ! dpkg-statoverride --list /usr/lib/virtualbox/VBoxSDL > /dev/null 2>&1; then | ||
chmod 4511 /usr/lib/virtualbox/VBoxSDL | ||
fi | ||
if ! dpkg-statoverride --list /usr/lib/virtualbox/VBoxNetDHCP > /dev/null 2>&1; then | ||
chmod 4511 /usr/lib/virtualbox/VBoxNetDHCP | ||
fi | ||
if ! dpkg-statoverride --list /usr/lib/virtualbox/VBoxNetNAT > /dev/null 2>&1; then | ||
chmod 4511 /usr/lib/virtualbox/VBoxNetNAT | ||
fi | ||
if ! dpkg-statoverride --list /usr/lib/virtualbox/VBoxNetAdpCtl > /dev/null 2>&1; then | ||
chmod 4511 /usr/lib/virtualbox/VBoxNetAdpCtl | ||
fi | ||
if [ -x /usr/lib/virtualbox/VBoxVolInfo ]; then | ||
if ! dpkg-statoverride --list /usr/lib/virtualbox/VBoxVolInfo > /dev/null 2>&1; then | ||
chmod 4511 /usr/lib/virtualbox/VBoxVolInfo | ||
fi | ||
fi | ||
fi # $1 = "configure" | ||
|
||
#DEBHELPER# | ||
|
||
if test "${INSTALL_NO_VBOXDRV}" = 1; then | ||
POSTINST_START=--nostart | ||
else | ||
POSTINST_START= | ||
fi | ||
|
||
# Install and start the new service scripts. | ||
/usr/lib/virtualbox/prerm-common.sh || true | ||
/usr/lib/virtualbox/postinst-common.sh ${POSTINST_START} > /dev/null || true | ||
|
||
exit 0 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.