[asterisk-bugs] [JIRA] (DAHTOOL-65) modinfo dahdi fails when run from /etc on centos 5

Shaun Ruffell (JIRA) noreply at issues.asterisk.org
Tue Dec 31 09:45:03 CST 2013


    [ https://issues.asterisk.org/jira/browse/DAHTOOL-65?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=213409#comment-213409 ] 

Shaun Ruffell commented on DAHTOOL-65:
--------------------------------------

What about just creating a temp directory in a subshell to be sure that there isn't a dahdi directory?  Something like:

(TEMP_DIR=$(mktemp -d -t) && cd $TEMP_DIR && modinfo dahdi; rm -f -r $TEMP_DIR)
                
> modinfo dahdi fails when run from /etc on centos 5
> --------------------------------------------------
>
>                 Key: DAHTOOL-65
>                 URL: https://issues.asterisk.org/jira/browse/DAHTOOL-65
>             Project: DAHDI-Tools
>          Issue Type: Bug
>      Security Level: None
>          Components: General
>         Environment: Centos 5. Issue in modprobe seems to have been fixed in Centos 6.
>            Reporter: Tzafrir Cohen
>            Assignee: Russ Meyerriecks
>            Severity: Minor
>
> The dahd init script may use the commands 'modinfo dahdi' or 'modprobe dahdi'.
> Those commands will fail if the user is in a directory that has a subdirectory called 'dahdi'.
> My workaround is to try instead (cd /sys; modinfo dahdi) . But is /sys guaranteed to exist? I don't want to assume that the system will not have the directory /dahdi . Any better fix?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.asterisk.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list