1*cdf0e10cSrcweir#!/bin/sh 2*cdf0e10cSrcweir 3*cdf0e10cSrcweirif [ "$1" = "remove" ] 4*cdf0e10cSrcweirthen 5*cdf0e10cSrcweir # backing all entries pointing to our binary 6*cdf0e10cSrcweir sed '/%PREFIX/d' /etc/mailcap 2>/dev/null >> /etc/mailcap.tmp$$ 7*cdf0e10cSrcweir 8*cdf0e10cSrcweir # and replace the original file 9*cdf0e10cSrcweir mv -f /etc/mailcap.tmp$$ /etc/mailcap 10*cdf0e10cSrcweirfi