Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 273390

Summary: net-misc/dahdi-tools: init script doesn't load fxotune.conf
Product: Gentoo Linux Reporter: Jaco Kroon <jaco>
Component: Current packagesAssignee: Tony Vroon (RETIRED) <chainsaw>
Status: RESOLVED FIXED    
Severity: enhancement CC: voip+disabled
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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.