xref: /AOO41X/main/sysui/desktop/debian/prerm (revision 85e232268e41fe6d823a99fb8cdb570075bd59b0) !
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