net/freeswitch: Updated to 1.0.6 (which allowed to eliminate patches), fixed network...
[openwrt/svn-archive/archive.git] / net / freeswitch / files / freeswitch.init
1 #!/bin/sh /etc/rc.common
2 # Copyright (C) 2006 OpenWrt.org
3 START=90
4
5 DEFAULT=/etc/default/freeswitch
6 OPTIONS=""
7
8 boot() {
9 # Do nothing on boot
10 exit 0
11 }
12
13 start() {
14 [ -f $DEFAULT ] && . $DEFAULT
15 mkdir -p $FS_DIR_DB
16 mkdir -p $FS_DIR_LOG
17 { $FS_DIR/usr/bin/freeswitch $OPTIONS -c >$FS_DIR_LOG/console.log ; } &
18 }
19
20 stop() {
21 [ -f $DEFAULT ] && . $DEFAULT
22 $FS_DIR/usr/bin/freeswitch $OPTIONS -stop
23 }