summaryrefslogtreecommitdiff
path: root/testing/capi4hylafax/capi4hylafax.rc
diff options
context:
space:
mode:
authorMichał Masłowski <mtjm@mtjm.eu>2012-03-24 11:05:09 +0100
committerMichał Masłowski <mtjm@mtjm.eu>2012-03-24 11:05:09 +0100
commita98f27a2a1e717afe20483ffa974d542cf80f4d9 (patch)
tree9e0b5e5e61843b4b7135423f5151e1f595d47193 /testing/capi4hylafax/capi4hylafax.rc
parent9865b00e684520710b6f685aae18fe7681396b65 (diff)
parentadac5afd500d4ee3a65035e1cf5353ae236b4a61 (diff)
Merge branch 'master' of ssh://parabolagnulinux.org:1863/home/parabola/abslibre-pre-mips64el
Conflicts: community/ocaml-findlib/PKGBUILD gnome-unstable/clutter/PKGBUILD gnome-unstable/gcalctool/PKGBUILD gnome-unstable/gnome-screensaver/PKGBUILD gnome-unstable/gnome-screensaver/gnome-screensaver.pam gnome-unstable/pygobject/PKGBUILD kde-unstable/calligra/PKGBUILD
Diffstat (limited to 'testing/capi4hylafax/capi4hylafax.rc')
-rwxr-xr-xtesting/capi4hylafax/capi4hylafax.rc49
1 files changed, 0 insertions, 49 deletions
diff --git a/testing/capi4hylafax/capi4hylafax.rc b/testing/capi4hylafax/capi4hylafax.rc
deleted file mode 100755
index 51025b020..000000000
--- a/testing/capi4hylafax/capi4hylafax.rc
+++ /dev/null
@@ -1,49 +0,0 @@
-#!/bin/bash
-
-. /etc/rc.conf
-. /etc/rc.d/functions
-
-PID=`pidof -o %PPID /usr/bin/c2faxrecv`
-case "$1" in
- start)
- stat_busy "Starting capi4hylafax"
- if [ -z "$PID" ]; then
- /usr/bin/c2faxrecv > /dev/null &
- faxmodem faxCAPI
- fi
- if [ ! -f /var/run/faxq.pid ]; then
- stat_fail
- echo "ERROR: hylafax is not running"
- exit 1
- fi
- if [ ! -f /var/run/hfaxd.pid ]; then
- stat_fail
- echo "ERROR: hylafax is not running"
- exit 1
- fi
- if [ ! -z "$PID" -o $? -gt 0 ]; then
- stat_fail
- else
- add_daemon capi4hylafax
- stat_done
- fi
- ;;
- stop)
- stat_busy "Stopping capi4hylafax"
- [ ! -z "$PID" ] && kill $PID &> /dev/null
- if [ $? -gt 0 ]; then
- stat_fail
- else
- rm_daemon capi4hylafax
- stat_done
- fi
- ;;
- restart)
- $0 stop
- sleep 2
- $0 start
- ;;
- *)
- echo "usage: $0 {start|stop|restart}"
-esac
-exit 0