From b7e8d5af06ee840cc48217ca4629cf28aeeb3c50 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 17:35:19 +0200 Subject: Adding debian version 252.22-1~deb12u1. Signed-off-by: Daniel Baumann --- debian/systemd.prerm | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 debian/systemd.prerm (limited to 'debian/systemd.prerm') diff --git a/debian/systemd.prerm b/debian/systemd.prerm new file mode 100644 index 0000000..b08c895 --- /dev/null +++ b/debian/systemd.prerm @@ -0,0 +1,15 @@ +#!/bin/sh + +set -e + +# +# Prevent systemd from being removed if it's the active init. That +# will not work. +# + +if [ "$1" = "remove" ] && [ -d /run/systemd/system ]; then + echo "systemd is the active init system, please switch to another before removing systemd." + exit 1 +fi + +#DEBHELPER# -- cgit v1.2.3