blob: b24845c46a120c8ef519385b4e1e5a62abe23c27 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#! /bin/sh
# hylafax hfaxd startup example.
# be sure to initialize the followings:
# server........: /usr/local/sbin/faxsetup
# modems........: /usr/local/sbin/faxaddmodem
# incoming calls: /etc/ttys
#
# add switch to use old protocol (not recommended): -o [port]
# add switch to use paging protocol (SNPP)........: -s [port]
# read more about these options in 'man hfaxd'.
case "$1" in
start)
if [ -x /usr/local/sbin/hfaxd ]; then
/usr/local/sbin/hfaxd && echo -n ' hylafax-hfaxd'
fi
;;
stop)
killall hfaxd && echo -n ' hylafax-hfaxd'
;;
*)
echo "Usage: `basename $0` {start|stop}" >&2
exit 64
;;
esac
exit 0
|