HylaFAX The world's most advanced open source fax server

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [hylafax-users] Making modem "down" for a period of a time under dual-modem system/ Broadcasting

On Tue, 18 Jun 2002 09:52:16 +0000, "Daten Tod" <datentod@hotmail.com>

>with no results. The only lame solution I could come up with is to use cron 
>to kill all hylafax proccesses, remove the config.cuaa1 file from /etc/ and 
>modify /etc/ttys. Restart Hylafax & ttys. Then 8 hours later reverse the 

I've a similar setup. The broadcast modems are not managed by faxgetty.
With cron I on/off the 2 modems.


if [ "$1" = "on" ]; then
    $FAXMODEM -u 202 -c '(0,1),(0-5),(0-4),(0-2),(0,1),(0),(0),(0-7)' ttyS1
    $FAXMODEM -u 203 -c '(0,1),(0-5),(0-4),(0-2),(0,1),(0),(0),(0-7)' ttyS0
    $FAXSTATE -s ready -n ttyS1
    $FAXSTATE -s ready -n ttyS0
elif [ "$1" = "off" ]; then
    $FAXSTATE -s down -n ttyS1
    $FAXSTATE -s down -n ttyS0
    echo "$0 [on | off]"
    exit 1

faxgetty would reinit the modem and sets it ready.


____________________ HylaFAX(tm) Users Mailing List _______________________
  To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi
 On UNIX: mail -s unsubscribe hylafax-users-request@hylafax.org < /dev/null

Project hosted by iFAX Solutions