summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/dahdi-tools/files/dahdi.init')
-rw-r--r--net-misc/dahdi-tools/files/dahdi.init39
1 files changed, 0 insertions, 39 deletions
diff --git a/net-misc/dahdi-tools/files/dahdi.init b/net-misc/dahdi-tools/files/dahdi.init
deleted file mode 100644
index f0c77b9..0000000
--- a/net-misc/dahdi-tools/files/dahdi.init
+++ /dev/null
@@ -1,39 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-depend() {
- need net
-}
-
-checkconfig() {
- if [ ! -f /etc/dahdi/system.conf ]; then
- eerror "/etc/dahdi/system.conf not found. Nothing to do."
- return 1
- fi
-
- return 0
-}
-
-start() {
- checkconfig || return 1
-
- if [ -x /opt/bin/dahdihpec_enable ]; then
- if grep -q "^echocanceller=hpec" /etc/dahdi/system.conf; then
- ebegin "Enabling HPEC"
- /opt/bin/dahdihpec_enable >/dev/null
- eend $?
- fi
- fi
-
- ebegin "Starting DAHDI"
- /usr/sbin/dahdi_cfg
- eend $?
-}
-
-stop() {
- ebegin "Stopping DAHDI"
- /usr/sbin/dahdi_cfg -s
- eend
-}