#!/bin/sh # preinst script for kexec-tools # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `install' # * `install' # * `upgrade' # * `abort-upgrade' # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package case "$1" in install) ;; upgrade) # kexec-tools does not use init or systemd services any more. # Automatic loading of kexec image has been taken over by systemctl # and may be assumed by logind in near future. kexec-tools package # now provides a script to load a kexec image which can be used # together with systemd or logind update-rc.d -f kexec remove update-rc.d -f kexec-load remove ;; abort-upgrade) ;; *) echo "preinst called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. # Automatically added by dh_installdeb/13.11.6 dpkg-maintscript-helper rm_conffile /etc/init.d/kexec 1:2.0.27-1\~ kexec-tools -- "$@" dpkg-maintscript-helper rm_conffile /etc/init.d/kexec-load 1:2.0.27-1\~ kexec-tools -- "$@" # End automatically added section exit 0