packages/net/freeswitch/files/freeswitch.init
nico 0394f56f0f [packages] freeswitch: make it fully modular, add patches to allow more modules to cross-compile
git-svn-id: svn://svn.openwrt.org/openwrt/packages@18044 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-10-13 07:20:19 +00:00

19 lines
325 B
Bash

#!/bin/sh /etc/rc.common
# Copyright (C) 2006 OpenWrt.org
START=90
DEFAULT=/etc/default/freeswitch
OPTIONS=""
start() {
[ -f $DEFAULT ] && . $DEFAULT
mkdir -p $FS_DIR_DB
mkdir -p $FS_DIR_LOG
$FS_DIR/usr/bin/freeswitch $OPTIONS -c
}
stop() {
[ -f $DEFAULT ] && . $DEFAULT
$FS_DIR/usr/bin/freeswitch $OPTIONS -stop
}