mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 03:07:43 +02:00
Merge branch 'master' of git://git.ipfire.org/ipfire-2.x
This commit is contained in:
@@ -32,7 +32,7 @@ DL_FROM = $(URL_IPFIRE)
|
|||||||
DIR_APP = $(DIR_SRC)/$(THISAPP)
|
DIR_APP = $(DIR_SRC)/$(THISAPP)
|
||||||
TARGET = $(DIR_INFO)/$(THISAPP)
|
TARGET = $(DIR_INFO)/$(THISAPP)
|
||||||
PROG = asterisk
|
PROG = asterisk
|
||||||
PAK_VER = 2
|
PAK_VER = 3
|
||||||
|
|
||||||
CHAN_CAPI = chan_capi-1.0.2
|
CHAN_CAPI = chan_capi-1.0.2
|
||||||
|
|
||||||
|
|||||||
@@ -18,9 +18,7 @@
|
|||||||
case "${1}" in
|
case "${1}" in
|
||||||
start)
|
start)
|
||||||
boot_mesg "Starting Asterisk PBX..."
|
boot_mesg "Starting Asterisk PBX..."
|
||||||
/sbin/modprobe zaptel
|
loadproc /usr/sbin/asterisk -p
|
||||||
/sbin/modprobe ztdummy
|
|
||||||
loadproc /usr/sbin/asterisk
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
stop)
|
stop)
|
||||||
@@ -44,7 +42,7 @@ case "${1}" in
|
|||||||
status)
|
status)
|
||||||
statusproc /usr/sbin/asterisk > /tmp/ast 2>&1
|
statusproc /usr/sbin/asterisk > /tmp/ast 2>&1
|
||||||
STAT=$(cat /tmp/ast)
|
STAT=$(cat /tmp/ast)
|
||||||
/bin/rm -f /tmp/ast
|
rm -f /tmp/ast
|
||||||
echo $STAT
|
echo $STAT
|
||||||
EX_Z=$(echo $STAT | grep "not" | wc -l)
|
EX_Z=$(echo $STAT | grep "not" | wc -l)
|
||||||
exit $EX_Z
|
exit $EX_Z
|
||||||
|
|||||||
Reference in New Issue
Block a user