#!/usr/bin/ksh # IBM_PROLOG_BEGIN_TAG # This is an automatically generated prolog. # # bos720 src/bos/kernext/usb/usba/naudio2.sh 1.1 # # Licensed Materials - Property of IBM # # COPYRIGHT International Business Machines Corp. 2007 # All Rights Reserved # # US Government Users Restricted Rights - Use, duplication or # disclosure restricted by GSA ADP Schedule Contract with IBM Corp. # # IBM_PROLOG_END_TAG # @(#)56 1.1 src/bos/kernext/usb/usba/naudio2.sh, sysxusb_audio, bos720 1/3/07 20:07:36 # # Normalize Audio 2 # result=`LC_ALL=C LANG=C /usr/sbin/lsdev -C -l paud0 -r status` if [ "xAvailable" = "x$result" ] then exit 0 fi available=`LC_ALL=C LANG=C /usr/sbin/lsdev -C -c audio -s usbif -t 0101000a -S a -r name | /usr/bin/head -1` if [ "x" = "x$available" ] then exit 0 fi parent=`LC_ALL=C LANG=C /usr/sbin/lsdev -C -r parent -l $available` if [ "x" = "x$parent" ] then exit 1 fi if [ "xDefined" = "x$result" ] then if ! /usr/sbin/rmdev -dl paud0 > /dev/null then exit 1 fi fi if ! /usr/sbin/rmdev -dl $available > /dev/null then exit 1 fi if ! /usr/sbin/cfgmgr -l $parent >/dev/null then exit 1 fi exit 0