diff options
Diffstat (limited to 'comms/hylafax/files/hylafax.sh.sample.in')
-rw-r--r-- | comms/hylafax/files/hylafax.sh.sample.in | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/comms/hylafax/files/hylafax.sh.sample.in b/comms/hylafax/files/hylafax.sh.sample.in new file mode 100644 index 000000000000..bf5fcb80bf18 --- /dev/null +++ b/comms/hylafax/files/hylafax.sh.sample.in @@ -0,0 +1,25 @@ +#! /bin/sh +# hylafax startup example. +# be sure to initialize the following: +# server: %%PREFIX%%/sbin/faxsetup +# modems: %%PREFIX%%/sbin/faxaddmodem +# incoming calls: /etc/ttys + +case "$1" in +start) + if [ -x %%PREFIX%%/sbin/hylafax ]; then + %%PREFIX%%/sbin/hylafax start + fi + ;; +stop) + if [ -x %%PREFIX%%/sbin/hylafax ]; then + %%PREFIX%%/sbin/hylafax stop + fi + ;; +*) + echo "Usage: `basename $0` {start|stop}" >&2 + exit 64 + ;; +esac + +exit 0 |