xref: /illumos-gate/usr/src/cmd/svc/milestone/devices-audio (revision aef5f291eda20993128ff27fe48afa3097634eaf)
188447a05SGarrett D'Amore#!/sbin/sh
288447a05SGarrett D'Amore#
388447a05SGarrett D'Amore# CDDL HEADER START
488447a05SGarrett D'Amore#
588447a05SGarrett D'Amore# The contents of this file are subject to the terms of the
688447a05SGarrett D'Amore# Common Development and Distribution License (the "License").
788447a05SGarrett D'Amore# You may not use this file except in compliance with the License.
888447a05SGarrett D'Amore#
988447a05SGarrett D'Amore# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1088447a05SGarrett D'Amore# or http://www.opensolaris.org/os/licensing.
1188447a05SGarrett D'Amore# See the License for the specific language governing permissions
1288447a05SGarrett D'Amore# and limitations under the License.
1388447a05SGarrett D'Amore#
1488447a05SGarrett D'Amore# When distributing Covered Code, include this CDDL HEADER in each
1588447a05SGarrett D'Amore# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1688447a05SGarrett D'Amore# If applicable, add the following below this CDDL HEADER, with the
1788447a05SGarrett D'Amore# fields enclosed by brackets "[]" replaced with your own identifying
1888447a05SGarrett D'Amore# information: Portions Copyright [yyyy] [name of copyright owner]
1988447a05SGarrett D'Amore#
2088447a05SGarrett D'Amore# CDDL HEADER END
2188447a05SGarrett D'Amore#
2288447a05SGarrett D'Amore#
2388447a05SGarrett D'Amore# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
2488447a05SGarrett D'Amore# Use is subject to license terms.
2588447a05SGarrett D'Amore#
2688447a05SGarrett D'Amore
2788447a05SGarrett D'Amore. /lib/svc/share/smf_include.sh
2888447a05SGarrett D'Amore
2988447a05SGarrett D'Amoresmf_is_globalzone || exit $SMF_EXIT_OK
3088447a05SGarrett D'Amore
3188447a05SGarrett D'Amore#
3288447a05SGarrett D'Amore# In order to populate the initial startup mapping of devfs links to
3388447a05SGarrett D'Amore# the audio subsystem (necessary to properly report numbers in
3488447a05SGarrett D'Amore# /dev/sndstat and in the OSS sysinfo ioctls -- thank you Linux!) we
35*aef5f291SGarrett D'Amore# need to initialize each audio device and plumb it into the system.
3688447a05SGarrett D'Amore#
37*aef5f291SGarrett D'Amore/usr/bin/audioctl init-devices
38*aef5f291SGarrett D'Amore
3988447a05SGarrett D'Amoreexit $SMF_EXIT_OK
40