Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 273390 - net-misc/dahdi-tools: init script doesn't load fxotune.conf
Summary: net-misc/dahdi-tools: init script doesn't load fxotune.conf
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Tony Vroon (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-09 17:38 UTC by Jaco Kroon
Modified: 2009-10-28 11:25 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jaco Kroon 2009-06-09 17:38:06 UTC
When dahdi is started it should check for the existence of /etc/fxotune.conf and if it exists run fxotune -s.  I've locally updated my dahdi init script to have the following as start() function and this does the trick:

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 $?

        if [ $? -eq 0 -a -r /etc/fxotune.conf ]; then
                ebegin "Loading DAHDI fxotune.conf"
                /usr/sbin/fxotune -s
                eend $?
        fi
}


Reproducible: Always

Steps to Reproduce:
Comment 1 Mounir Lamouri (volkmar) (RETIRED) gentoo-dev 2009-07-07 13:07:11 UTC
Reassigning to maintainer.
Comment 2 Tony Vroon (RETIRED) gentoo-dev 2009-10-28 11:25:16 UTC
+*dahdi-tools-2.2.0 (28 Oct 2009)
+
+  28 Oct 2009; <chainsaw@gentoo.org> +dahdi-tools-2.2.0.ebuild,
+  +files/dahdi-tools-2.2.0-ifreq.patch,
+  +files/dahdi-tools-2.2.0-modprobe-suffix.patch, +files/dahdi.init2:
+  Version bump. Change libusb dependency as requested by Mounir "volkmar"
+  Lamouri in bug #270160. Header & modprobe.d fixups by Csaba Tóth in bug
+  #270283. Run fxotune from the init script, from Jaco Kroon in bug #273390.