summaryrefslogtreecommitdiffstats
path: root/sysui/desktop/debian/prerm
blob: d83e09f841f431b37504e6d581630424cbca7a42 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

if [ "$1" = "remove" ]
then
  # backing all entries pointing to our binary
  sed '/%PREFIX/d' /etc/mailcap 2>/dev/null >> /etc/mailcap.tmp$$

  # and replace the original file
  mv -f /etc/mailcap.tmp$$ /etc/mailcap
fi