2015-02-05 03:14:41 +01:00
|
|
|
#!/bin/sh
|
2014-10-31 06:59:20 +01:00
|
|
|
# prerm script for core-agent-linux
|
|
|
|
#
|
|
|
|
# see: dh_installdeb(1)
|
|
|
|
|
2014-11-07 06:08:26 +01:00
|
|
|
set -e
|
2014-10-31 06:59:20 +01:00
|
|
|
|
|
|
|
# The prerm script may be called in the following ways:
|
|
|
|
# * <prerm> 'remove'
|
|
|
|
# * <old-prerm> 'upgrade' <new-version>
|
|
|
|
# * <conflictor's-prerm> 'remove' 'in-favour' <package> <new-version>
|
2015-10-15 04:34:55 +02:00
|
|
|
# * <deconfigured's-prerm> 'deconfigure' 'in-favour' <package-being-installed>
|
2014-10-31 06:59:20 +01:00
|
|
|
# <version> [removing conflicting-package version]
|
|
|
|
#
|
|
|
|
# The package whose prerm is being called will be at least "Half-Installed".
|
2015-10-15 04:34:55 +02:00
|
|
|
# All package dependencies will at least be "Half-Installed" and will have
|
|
|
|
# previously been configured and not removed. If there was no error, all
|
|
|
|
# dependencies will at least be "Unpacked", but these actions may be called in
|
|
|
|
# various error states where dependencies are only "Half-Installed" due to a
|
2014-10-31 06:59:20 +01:00
|
|
|
# partial upgrade.
|
|
|
|
#
|
|
|
|
# * <new-prerm> 'failed-upgrade' <old-version>
|
|
|
|
#
|
|
|
|
# Called during error handling when prerm upgrade fails. The new package
|
|
|
|
# will not yet be unpacked, and all the same constraints as for preinst
|
|
|
|
# upgrade apply.
|
|
|
|
#
|
|
|
|
# For details, see http://www.debian.org/doc/debian-policy/ or
|
|
|
|
# https://www.debian.org/doc/debian-policy/ch-maintainerscripts.html or
|
|
|
|
# the debian-policy package
|
|
|
|
|
|
|
|
if [ "$1" = "remove" ] ; then
|
2015-01-24 22:41:05 +01:00
|
|
|
for init in plymouth-shutdown \
|
|
|
|
prefdm \
|
|
|
|
splash-manager \
|
|
|
|
start-ttys \
|
|
|
|
tty ; do
|
|
|
|
dpkg-divert --divert /etc/init/${init}.conf.qubes-disabled --package qubes-core-agent --remove /etc/init/${init}.conf
|
|
|
|
done
|
|
|
|
|
|
|
|
dpkg-divert --divert /etc/init/serial.conf.qubes-orig --package qubes-core-agent --remove /etc/init/serial.conf
|
2014-10-31 06:59:20 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
# dh_installdeb will replace this with shell code automatically
|
|
|
|
# generated by other debhelper scripts.
|
|
|
|
|
|
|
|
#DEBHELPER#
|
|
|
|
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
# vim: set ts=4 sw=4 sts=4 et :
|