mirror of
https://git.proxmox.com/git/systemd
synced 2025-12-26 22:14:29 +00:00
Add a config drop-in to not start if ntp, openntpd, or chrony is installed. Closes: #755722
26 lines
863 B
Bash
26 lines
863 B
Bash
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
case "$1" in
|
|
purge)
|
|
# clean up after manually enabled units in postinst
|
|
rm -f /etc/systemd/system/getty.target.wants/getty@tty1.service
|
|
rm -f /etc/systemd/system/multi-user.target.wants/remote-fs.target
|
|
rm -f /etc/systemd/system/sysinit.target.wants/systemd-timesyncd.service
|
|
rmdir --ignore-fail-on-non-empty /etc/systemd/system/getty.target.wants /etc/systemd/system/multi-user.target.wants
|
|
rmdir --ignore-fail-on-non-empty /etc/systemd/system/sysinit.target.wants
|
|
|
|
rm -f /var/lib/systemd/catalog/database
|
|
rmdir --ignore-fail-on-non-empty /var/lib/systemd/catalog 2> /dev/null || true
|
|
|
|
rm -rf /var/lib/systemd/backlight/
|
|
rm -rf /var/lib/systemd/rfkill/
|
|
|
|
rm -f /var/lib/systemd/clock
|
|
rm -f /var/lib/systemd/random-seed
|
|
;;
|
|
esac
|
|
|
|
#DEBHELPER#
|