1 2 3 4 5 6 7
pre_remove() { systemctl disable "sbupdate@.path" if systemctl --quiet is-system-running; then systemctl stop "sbupdate@*.path" fi }