Linux puskom-ProLiant-DL385-Gen10 5.4.0-150-generic #167~18.04.1-Ubuntu SMP Wed May 24 00:51:42 UTC 2023 x86_64
/
var
/
lib
/
dpkg
/
info
/
/var/lib/dpkg/info/virtualbox-6.0.prerm
#!/bin/sh # $Id: prerm 127855 2019-01-01 01:45:53Z bird $ ## @file # VirtualBox pre-removal. # # # 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): # upgrade: (new version): upgrade to a new version # failed-upgrade: (our version): failed to upgrade # remove: (our version): remove this package # deconfigure: (our version): removing conflicting version rm -f /etc/udev/rules.d/60-vboxdrv.rules rm -f /etc/vbox/license_agreed rm -f /etc/vbox/module_not_compiled # defaults [ -r /etc/default/virtualbox ] && . /etc/default/virtualbox . /usr/share/debconf/confmodule db_version 2.0 db_capb backup if ! /usr/lib/virtualbox/prerm-common.sh > /dev/null 2>&1; then if [ "$1" != "failed-upgrade" ]; then db_fset virtualbox/old-running seen false || true db_input critical virtualbox/old-running || true db_go || true fi exit 1 fi # Automatically added by dh_python2: if which pyclean >/dev/null 2>&1; then pyclean -p virtualbox-6.0 else dpkg -L virtualbox-6.0 | grep '\.py$' | while read file do rm -f "${file}"[co] >/dev/null done fi # End automatically added section exit 0