systemd.prerm 292 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
#! /bin/sh

set -e

#
# Prevent systemd from being removed if it's the active init.  That
# will not work.
#

10
if [ "$1" = "remove" ] && [ -d /run/systemd/system ]; then
11 12 13 14 15
    echo "systemd is the active init system, please switch to another before removing systemd."
    exit 1
fi

#DEBHELPER#