1 #!/bin/sh /etc/rc.common
2 # Copyright (C) 2006 OpenWrt.org
5 DEFAULT
=/etc
/default
/freeswitch
14 [ -f $DEFAULT ] && .
$DEFAULT
17 mkdir
-p $FS_DIR_RECORDINGS
18 mkdir
-p $FS_DIR_VM_STORAGE
20 $FS_DIR/usr
/bin
/freeswitch
$OPTIONS -nc
24 [ -f $DEFAULT ] && .
$DEFAULT
25 $FS_DIR/usr
/bin
/freeswitch
$OPTIONS -stop
29 # stopping freeswitch is non-blocking, so we wait until freeswitch's
30 # event socket is down, and then wait an additional ten seconds so that
31 # freeswitch should be completely shutdown before we start it again
34 fs_cli
-x status
>/dev
/null
2>&1
36 while [ $retval -eq 0 ]; do sleep 1; fs_cli
-x status
>/dev
/null
2>&1; retval
=$?
; done