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.postinst | |
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.postinst')
-rwxr-xr-x | debian/hyperv-daemons.postinst | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/debian/hyperv-daemons.postinst b/debian/hyperv-daemons.postinst new file mode 100755 index 000000000..3573c9c2e --- /dev/null +++ b/debian/hyperv-daemons.postinst @@ -0,0 +1,18 @@ +#!/bin/sh +set -e + +if [ "$1" = "configure" ]; then + if [ -d /run/systemd/system ]; then + if [ -z "$2" ]; then + # On initial install make sure udev notifies systemd + udevadm trigger || true + else + # On upgrade make sure running daemons are restarted + systemctl try-restart hv-fcopy-daemon.service hv-kvp-daemon.service hv-vss-daemon.service + fi + fi +fi + +#DEBHELPER# + +exit 0 |