Date: Sat, 19 Apr 2014 02:22:35 +0200 (CEST) From: Dan Lukes <dan@obluda.cz> To: FreeBSD-gnats-submit@freebsd.org Subject: ports/188780: [ patch ] misc/dahdi-kmod: rc.d/dahdi start doesn't initialise properly Message-ID: <201404190022.s3J0MZkc082962@m9-64.freebsd.cz> Resent-Message-ID: <201404190030.s3J0U0i3065597@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 188780 >Category: ports >Synopsis: [ patch ] misc/dahdi-kmod: rc.d/dahdi start doesn't initialise properly >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Apr 19 00:30:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: Dan Lukes >Release: FreeBSD 9.1-RELEASE-p11 amd64 >Organization: >Environment: System: FreeBSD 9.1-RELEASE-p11 #4 r264285M $FreeBSD: head/misc/dahdi-kmod/files/dahdi.in 340872 2014-01-24 00:14:07Z >Description: The startup script rc.d/dahdi will load required kernel modules then call dahdi_cfg immediately in attempt to configure them Unfortunately, kernel's device probe and attach may take some time so dahdi_cfg may fail because device is not ready yet. And when device become ready it doesn't work as it is not configured by dahdi_cfg >How-To-Repeat: Observed with wct4xxp card and E1 line. Just try it. >Fix: Give kernel module a few seconds to initialize hardware in full. --- patch begins here --- --- misc/dahdi-kmod/files/dahdi.in~ 2014-02-03 20:58:05.000000000 +0100 +++ misc/dahdi-kmod/files/dahdi.in 2014-04-19 02:08:28.000000000 +0200 @@ -62,6 +62,7 @@ devfs rule apply path 'dahdi/*' mode 0664 user root group dahdi # run configuration utilities + /bin/sleep 5 %%PREFIX%%/sbin/dahdi_cfg if [ -r %%PREFIX%%/etc/fxotune.conf ]; then echo "Starting fxotune." --- patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201404190022.s3J0MZkc082962>