diff options
Diffstat (limited to 'net-misc/dahdi-tools/files/2.1.0-r1/dahdi.init')
-rw-r--r-- | net-misc/dahdi-tools/files/2.1.0-r1/dahdi.init | 8 |
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" |