aboutsummaryrefslogtreecommitdiffstats
path: root/mail/biffer/pkg-deinstall
blob: 11aa64cf820ade80dc2386611d33e2acd0decd42 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

if [ x$2 != xDEINSTALL ]; then
    exit
fi

echo "Removing biffer from /etc/services ..."
cp /etc/services /etc/services.bak
egrep -v '^biffer' /etc/services.bak > /etc/services

echo "Removing biffer and biffer_comsat from /etc/inetd.conf ..."
cp /etc/inetd.conf /etc/inetd.conf.bak
egrep -v '^biffer' /etc/inetd.conf.bak | egrep -v \
  '^comsat[[:space:]]+.*[[:space:]]+biffer_comsat' > /etc/inetd.conf