Run asterisk as a realtime-process.
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 5 Jul 2008 18:58:24 +0000 (20:58 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 5 Jul 2008 18:58:24 +0000 (20:58 +0200)
lfs/asterisk
src/initscripts/init.d/asterisk

index 91ebf98..ce41c56 100644 (file)
@@ -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
 
index 5e04bfb..b3a734b 100644 (file)
@@ -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