Sophie

Sophie

distrib > Mandriva > 2009.1 > x86_64 > media > main-release > by-pkgid > 9c646afe5a7225929c36e931c6075cf2 > scriptlet

hylafax-server-5.2.9-1mdv2009.1.x86_64.rpm

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"