home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2000 February
/
PCWorld_2000-02_cd.bin
/
live
/
sbin
/
sound_setup
< prev
next >
Wrap
Text File
|
1999-11-04
|
1KB
|
39 lines
#!/bin/sh
####################################################################
# Detect and install sound cards using OSS (Free) drivers if
# commercial (4Front) drivers are not available.
#
# Author: Gary Ng
# COPYRIGHT (C) Corel Corporation 1999.
####################################################################
echo "Starting sound_setup..."
# Corel Linux Deluxe version will come with OSS commercial sound drivers
if $( grep -q "1C-deluxe" /var/lib/corel_setup/category 2>/dev/null ) ; then
echo "OSS (Commercial) sound drivers will be installed..."
else
if [ ! -r "/tmp/no_sound" ] ; then
echo "Corel Linux Deluxe version will come with commercial sound drivers!"
echo "OSS (Free) sound drivers will be installed..."
# Make sure we don't have a zero byte size /etc/isapnp.conf file coz
# it would hang the sndconfig program
echo "Removing old /etc/isapnp.conf..."
if $( rm -f /etc/isapnp.conf ) ; then
# Run the sndconfig executable
SNDCONFIG=/sbin/sndconfig
if [ -x "$SNDCONFIG" ] ; then
echo "Running sndconfig..."
$SNDCONFIG
fi
else
echo "Skip running sndconfig..."
fi
else
echo "Skipping OSS/Free sound detection..."
fi
fi
echo "Exiting sound_setup..."