21 lines
428 B
Bash

#!/bin/sh
# $OpenBSD: DEINSTALL,v 1.4 2004/09/24 08:43:19 espie Exp $
#
# de-installation of amanda
set -e
PATH=/bin:/usr/bin:/sbin:/usr/sbin
CONF_DIR=${SYSCONFDIR}/amanda
if [ $# -ne 2 -o "$2" != "DEINSTALL" ]; then
echo "usage: $0 distname DEINSTALL" >&2
exit 1
fi
if grep -q -E ^amanda\|^amandaidx\|^amidxtape /etc/inetd.conf ; then
echo ""
echo "** Amanda should be removed from /etc/inetd.conf"
fi
exit 0