systemd/debian/systemd.prerm
Michael Biebl 93417d9013 Use more consistent shell script headers
Gbp-Dch: Ignore
2020-01-31 10:46:58 +01:00

16 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#