a2896f1478
2005/06/20 11:57:52 obr 1.1.2.1: #i48992# debian menu integration
10 lines
No EOL
229 B
Bash
10 lines
No EOL
229 B
Bash
#!/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 |