xref: /aoo42x/main/sysui/desktop/debian/prerm (revision cdf0e10c)
1#!/bin/sh
2
3if [ "$1" = "remove" ]
4then
5  # backing all entries pointing to our binary
6  sed '/%PREFIX/d' /etc/mailcap 2>/dev/null >> /etc/mailcap.tmp$$
7
8  # and replace the original file
9  mv -f /etc/mailcap.tmp$$ /etc/mailcap
10fi