ports/188780: [ patch ] misc/dahdi-kmod: rc.d/dahdi start doesn't initialise properly
Dan Lukes
dan at obluda.cz
Sat Apr 19 00:30:01 UTC 2014
>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:
More information about the freebsd-ports-bugs
mailing list