#!/bin/sh

set -e

if test -x "/etc/init.d/ubus"; then
	invoke-rc.d ubus stop || true
fi

# Unlike postrm, I can be sure, that runit-helper is present on 
# postinst.
NAME='ubus' ENABLE='yes' ONUPGRADE='restart' /lib/runit-helper/runit-helper prerm "$@"

#DEBHELPER#
