#!/bin/sh

# pre remove script for Debian GNU/Linux rbootd package

set -e

/etc/init.d/rbootd stop

## Remove the local files dir if emtpy -- leave alone o/w
rmdir /usr/local/lib/rbootd || true


## Remove the old doc directory
if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/rbootd ]; then
        rm -f /usr/doc/rbootd
fi

