#!/bin/sh

set -e

if [ "$1" = purge ] ; then
	rm -rf /run/rpcbind /run/rpcbind.lock /run/rpcbind.sock
fi
if [ -f /run/runit.stopit ] && [ -h /etc/service/rpcbind ]; then
        rm /etc/service/rpcbind && rm -R /etc/sv/rpcbind
else    
        update-rc.d rpcbind remove >/dev/null
fi

#DEBHELPER#
