#!/bin/bash
/usr/local/pd-admin2/CONFIGURE/dovecot.sh
rm -R /service/courier-*
rm -R /service/qmail-pop3d
perl -ne 's/^(SV.*scanboot)/#$1/m; print' /etc/inittab > /etc/inittab~ ;
mv /etc/inittab~ /etc/inittab;
kill -1 1; sleep 2
perl -ne 's/^#(SV.*scanboot)/$1/m; print' /etc/inittab > /etc/inittab~ ;
mv /etc/inittab~ /etc/inittab;
sleep 1
kill -1 1;
cd /usr/src
wget -nc download.pd-admin.de/service-dovecot.tgz
tar -C/ -xzf service-dovecot.tgz
