1 2 3 4 5 6 7 8 9 10 11 12
|
# Unlike postrm, I can be sure, that runit-helper is present on
# prerm.
#start: remove after trixie
if [ ! -e /usr/lib/runit-helper/runit-helper ]; then
#should not happen
echo "warning: can't find runit-helper, prerm action skipped!"
echo "warning: runit-helper: please report this bug"
fi
#end: remove after trixie
if [ -z "${DPKG_ROOT:-}" ] && [ -x /usr/lib/runit-helper/runit-helper ]; then
NAME='#NAME#' ENABLE='#ENABLE#' ONUPGRADE='#ONUPGRADE#' /usr/lib/runit-helper/runit-helper prerm "$@"
fi
|