summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Schwyn <gentoo@bitcetera.com>2008-12-16 23:23:18 +0000
committerSven Schwyn <gentoo@bitcetera.com>2008-12-16 23:23:18 +0000
commit16cb30ae00bd8f0864143c0f36d1727ebd6244d1 (patch)
treef9e07308bcf5be08c0f7d99b90043a6b78e426b1 /net-misc/dahdi-tools/files
parentnet-misc/callweaver: update Zap to DAHDI warnings (diff)
downloadvoip-16cb30ae00bd8f0864143c0f36d1727ebd6244d1.tar.gz
voip-16cb30ae00bd8f0864143c0f36d1727ebd6244d1.tar.bz2
voip-16cb30ae00bd8f0864143c0f36d1727ebd6244d1.zip
net-misc/dahdi-tools: Enable HPEC only if configuration found in system.conf
svn path=/trunk/; revision=748
Diffstat (limited to 'net-misc/dahdi-tools/files')
-rw-r--r--net-misc/dahdi-tools/files/2.1.0-r1/dahdi.init8
1 files changed, 5 insertions, 3 deletions
diff --git a/net-misc/dahdi-tools/files/2.1.0-r1/dahdi.init b/net-misc/dahdi-tools/files/2.1.0-r1/dahdi.init
index 0c32a1d..f0c77b9 100644
--- a/net-misc/dahdi-tools/files/2.1.0-r1/dahdi.init
+++ b/net-misc/dahdi-tools/files/2.1.0-r1/dahdi.init
@@ -20,9 +20,11 @@ start() {
checkconfig || return 1
if [ -x /opt/bin/dahdihpec_enable ]; then
- ebegin "Enabling HPEC"
- /opt/bin/dahdihpec_enable >/dev/null
- eend $?
+ 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"