1
0
Fork 0
systemd/debian/systemd.prerm
Daniel Baumann 1bd927b9e1
Adding debian version 257.7-1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 18:07:46 +02:00

15 lines
291 B
Bash

#!/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#