mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-10 11:05:54 +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)
|
||||
TARGET = $(DIR_INFO)/$(THISAPP)
|
||||
PROG = asterisk
|
||||
PAK_VER = 2
|
||||
PAK_VER = 3
|
||||
|
||||
CHAN_CAPI = chan_capi-1.0.2
|
||||
|
||||
|
||||
@@ -18,9 +18,7 @@
|
||||
case "${1}" in
|
||||
start)
|
||||
boot_mesg "Starting Asterisk PBX..."
|
||||
/sbin/modprobe zaptel
|
||||
/sbin/modprobe ztdummy
|
||||
loadproc /usr/sbin/asterisk
|
||||
loadproc /usr/sbin/asterisk -p
|
||||
;;
|
||||
|
||||
stop)
|
||||
@@ -44,7 +42,7 @@ case "${1}" in
|
||||
status)
|
||||
statusproc /usr/sbin/asterisk > /tmp/ast 2>&1
|
||||
STAT=$(cat /tmp/ast)
|
||||
/bin/rm -f /tmp/ast
|
||||
rm -f /tmp/ast
|
||||
echo $STAT
|
||||
EX_Z=$(echo $STAT | grep "not" | wc -l)
|
||||
exit $EX_Z
|
||||
|
||||
Reference in New Issue
Block a user