systemd/debian/systemd.prerm
2012-12-16 22:24:42 +01:00

17 lines
296 B
Bash

#! /bin/sh
set -e
#
# Prevent systemd from being removed if it's the active init. That
# will not work.
#
if [ "$1" = "remove" ] && [ -e /sys/fs/cgroup/systemd ]; then
echo "systemd is the active init system, please switch to another before removing systemd."
exit 1
fi
#DEBHELPER#