From 6a52a111bdfb9b871592b8c8d18b74d7f68aa6f1 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Thu, 4 Dec 2014 11:17:04 +0100 Subject: [PATCH] Create FIFO used by faxgetty porocesses --- root/var/service/faxgetty-iax/run | 6 ++++++ root/var/service/faxgetty-iax2/run | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/root/var/service/faxgetty-iax/run b/root/var/service/faxgetty-iax/run index 9e5990f..a5c8ddc 100644 --- a/root/var/service/faxgetty-iax/run +++ b/root/var/service/faxgetty-iax/run @@ -6,4 +6,10 @@ if [ "$STATUS" != "enabled" ]; then sv d . fi +if [ \!-p /var/spool/hylafax/FIFO.ttyIAX ]; then + mkfifo /var/spool/hylafax/FIFO.ttyIAX + chown uucp:uucp /var/spool/hylafax/FIFO.ttyIAX + chmod 660 /var/spool/hylafax/FIFO.ttyIAX +fi + exec /usr/sbin/faxgetty ttyIAX diff --git a/root/var/service/faxgetty-iax2/run b/root/var/service/faxgetty-iax2/run index 8aefa99..49d7430 100644 --- a/root/var/service/faxgetty-iax2/run +++ b/root/var/service/faxgetty-iax2/run @@ -6,4 +6,10 @@ if [ "$STATUS" != "enabled" ]; then sv d . fi +if [ \!-p /var/spool/hylafax/FIFO.ttyIAX2 ]; then + mkfifo /var/spool/hylafax/FIFO.ttyIAX2 + chown uucp:uucp /var/spool/hylafax/FIFO.ttyIAX2 + chmod 660 /var/spool/hylafax/FIFO.ttyIAX2 +fi + exec /usr/sbin/faxgetty ttyIAX2