xref: /trunk/main/sysui/desktop/debian/prerm (revision 43a102b2d160fdbc9485ed1f9c40936b61a06131)
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