3
# $Id: postrm,v 1.2 1998/10/13 03:39:01 roderick Exp $
9
[ -f "$1" -a ! -f "$2" ] || return 0
11
[ -n "$any_output" ] && echo
14
echo "In the older version of mon you're downgrading to, the $1 file" \
15
"is kept at $2." | fmt
18
echo -n "Would you like me to move the existing file" \
19
"to the old location? [Y] "
21
[ -z "$reply" ] && reply=y
34
echo "Leaving existing file in place."
38
echo "Invalid response \`$reply', answer with Y or N."
42
# Before 0.37l /etc/mon didn't exist.
43
if [ x-"$1" = x-upgrade -a $# = 2 ] &&
44
dpkg --compare-versions "$2" lt 0.37l
46
domv /etc/mon/mon.cf /etc/mon.cf
47
domv /etc/mon/netappfree.cf /usr/lib/mon/etc/netappfree.cf