diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 10:06:00 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 10:06:00 +0000 |
commit | b15a952c52a6825376d3e7f6c1bf5c886c6d8b74 (patch) | |
tree | 1500f2f8f276908a36d8126cb632c0d6b1276764 /debian/hyperv-daemons.preinst | |
parent | Adding upstream version 5.10.209. (diff) | |
download | linux-debian.tar.xz linux-debian.zip |
Adding debian version 5.10.209-2.debian/5.10.209-2debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/hyperv-daemons.preinst')
-rwxr-xr-x | debian/hyperv-daemons.preinst | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/debian/hyperv-daemons.preinst b/debian/hyperv-daemons.preinst new file mode 100755 index 000000000..5810d2946 --- /dev/null +++ b/debian/hyperv-daemons.preinst @@ -0,0 +1,17 @@ +#!/bin/sh +set -e + +if [ "$1" = "upgrade" ]; then + for i in fcopy kvp vss; do + if [ -d /run/systemd/system ]; then + systemctl stop hyperv-daemons.hv-$i-daemon.service 2>/dev/null || true + fi + deb-systemd-helper purge hyperv-daemons.hv-$i-daemon.service || true + invoke-rc.d --skip-systemd-native hyperv-daemons.hv-$i-daemon stop || true + update-rc.d hyperv-daemons.hv-$i-daemon remove || true + done +fi + +#DEBHELPER# + +exit 0 |