PREUN
/bin/sh
/usr/share/rpm-helper/del-service hylafax $1 hylafax-server
POSTIN
/bin/sh
/usr/share/rpm-helper/add-service hylafax $1 hylafax-server
#Since perl.prov has problems with special files use this workaround to create FIFO file
mkfifo -m 664 /var/spool/fax/FIFO
chown uucp:uucp /var/spool/fax/FIFO
# Adding faxgetty entry to /etc/inittab
logger adding FaxGetty entry to /etc/inittab
cat /etc/inittab | grep -i "faxgetty entry" || \
echo -e "# FaxGetty Entry\n#t0:23:respawn:/usr/sbin/faxgetty ttyS0" >> /etc/inittab
echo "Please run \"/usr/sbin/faxsetup -server\" to configure your fax server"