#!/bin/bash set -e # on purge delete tcos-standalone daemon case "$1" in purge|remove) rm -rf /var/lib/tcos/standalone/ [ -e /etc/default/tcos-standalone ] && rm -f /etc/default/tcos-standalone ;; esac #DEBHELPER# if [ "$1" = "remove" ] ; then update-rc.d -f tcos-standalone remove >/dev/null || exit $? fi