updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / dahdi-tools-8layertech / dahdi_cfg
blob926ea91a02c27061aa03e5a264a1ac42c13c4ba5
1 #!/bin/bash
3 daemon_name="DAHDI With OSLEC Echo Canceller"
5 . /etc/rc.conf
6 . /etc/rc.d/functions
8 case "$1" in
9 start)
10 stat_busy "Starting $daemon_name"
11 /usr/sbin/dahdi_cfg &>/dev/null
12 /usr/sbin/dahdi_genconf &>/dev/null
13 /usr/sbin/dahdi_registration &>/dev/null
14 if [ $? -gt 0 ]; then
15 stat_fail
16 else
17 stat_done
20 stop)
21 stat_busy "Stopping $daemon_name"
22 stat_done
24 restart)
25 $0 stop
26 $0 start
29 echo "usage: $0 {start|stop|restart}"
30 esac
32 exit 0