mirror of
https://git.proxmox.com/git/systemd
synced 2026-01-21 15:49:22 +00:00
17 lines
296 B
Bash
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#
|