aboutsummaryrefslogtreecommitdiff
path: root/comms/hylafax/files/hylafax.sh.sample.in
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2005-01-14 22:28:10 +0000
committerPav Lucistnik <pav@FreeBSD.org>2005-01-14 22:28:10 +0000
commiteba6967c9758820473c4bbebab80156f9e999040 (patch)
treed3c34fa023c04573677930afa600639aa8795256 /comms/hylafax/files/hylafax.sh.sample.in
parent37072f805a5e03a82430a4f5ed7a14cad2e2f531 (diff)
downloadports-eba6967c9758820473c4bbebab80156f9e999040.tar.gz
ports-eba6967c9758820473c4bbebab80156f9e999040.zip
- Update to 4.2.1
- Rework rc script - Handle nicely configuration files - Use SUB_FILES PR: ports/76179 Submitted by: Paul Everlund <tdv94ped@cs.umu.se> (maintainer)
Notes
Notes: svn path=/head/; revision=126467
Diffstat (limited to 'comms/hylafax/files/hylafax.sh.sample.in')
-rw-r--r--comms/hylafax/files/hylafax.sh.sample.in25
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