From owner-freebsd-bugs@FreeBSD.ORG Thu Dec 16 13:00:54 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EC8B916A4CE for ; Thu, 16 Dec 2004 13:00:54 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B88CF43D5E for ; Thu, 16 Dec 2004 13:00:54 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id iBGD0sMu021482 for ; Thu, 16 Dec 2004 13:00:54 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id iBGD0slF021481; Thu, 16 Dec 2004 13:00:54 GMT (envelope-from gnats) Date: Thu, 16 Dec 2004 13:00:54 GMT Message-Id: <200412161300.iBGD0slF021481@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Jose M Rodriguez Subject: conf/75137: add snd_* modules support to /etc/rc.d/mixer X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Jose M Rodriguez List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Dec 2004 13:00:55 -0000 The following reply was made to PR conf/75137; it has been noted by GNATS. From: Jose M Rodriguez To: FreeBSD-gnats-submit@FreeBSD.org Cc: Subject: conf/75137: add snd_* modules support to /etc/rc.d/mixer Date: Thu, 16 Dec 2004 00:17:10 +0100 (CET) >Number: 75137 >Category: conf >Synopsis: add snd_* modules support to /etc/rc.d/mixer >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Dec 15 23:20:26 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Jose M Rodriguez >Release: FreeBSD 5.3-STABLE i386 >Organization: Redes JM >Environment: System: FreeBSD orion.redesjm.local 5.3-STABLE FreeBSD 5.3-STABLE #0: Wed Dec 15 00:35:47 CET 2004 root@orion.redesjm.local:/usr/obj/usr/src/sys/ORION i386 >Description: Add support for preload of sound modules needed for mixer operation. Use a blank separated list of modules in ${mixer_modules}, defined in /etc/rc.conf and preloaded by /etc/rc.d/mixer >How-To-Repeat: >Fix: --- patch-mixer_modules begins here --- --- /usr/src/etc/rc.d/mixer Sun Oct 10 11:50:53 2004 +++ etc/rc.d/mixer Thu Dec 9 23:25:41 2004 @@ -40,6 +40,22 @@ extra_commands="reload" # +# Install needed modules +# +install_mixer_modules() +{ + local mixer_module + + if [ -n "${mixer_modules}" ]; then + for mixer_module in "${mixer_modules}"; do + if ! /sbin/kldstat -n ${mixer_module} > /dev/null 2>&1 ; then + /sbin/kldload ${mixer_module} + fi + done + fi +} + +# # List current mixer devices to stdout. # list_mixers() @@ -81,6 +97,7 @@ { local mixer + install_mixer_modules for mixer in `list_mixers`; do mixer_restore ${mixer} done --- patch-mixer_modules ends here --- >Release-Note: >Audit-Trail: >Unformatted: _______________________________________________ freebsd-bugs@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-bugs To unsubscribe, send any mail to "freebsd-bugs-unsubscribe@freebsd.org"