3
case `/usr/bin/isainfo -k` in
10
DRVPATH=/kernel/drv/amd64/
14
DRVPATH=/kernel/drv/sparcv9/
18
echo Unknown architecture in soundon `isainfo -k`
21
if test "`modinfo|grep OSS` " != " "
23
echo One or more OSS modules already loaded
28
LOG=/var/log/soundon.log
30
rm -f /dev/sndstat # Just in case Boomer is installed in the system
32
echo "Open Sound System starting" `date` > $LOG
33
echo "OSS version: " `cat /etc/oss/version.dat` >> $LOG 2>&1
34
echo Solaris version: `uname -a` >> $LOG
35
echo CPU: `isainfo -k` >> $LOG
37
if test "`/usr/sbin/modinfo|grep OSS` " != " "
39
echo Warning: Some of the OSS modules were already loaded >> $LOG
40
/usr/sbin/modinfo|grep OSS >> $LOG
43
if test -f /etc/oss/license.asc
45
/usr/sbin/ossdetect -l >> $LOG
48
# Load osscore since it's not listed in installed_drivers file
49
/usr/sbin/modload $DRVPATH/osscore >> $LOG 2>&1
50
/usr/sbin/modinfo|grep " osscore " >> $LOG
52
if test -f /etc/oss/installed_drivers
55
echo "Loading driver modules" >> $LOG
56
for n in `cat /etc/oss/installed_drivers | sed 's/ .*//'`
58
/usr/sbin/modload $DRVPATH/$n >> $LOG 2>&1
59
/usr/sbin/modinfo|grep " $n " >> $LOG
60
/usr/sbin/devfsadm -i $n
63
echo /etc/oss/installed_drivers not found. >> $LOG
64
echo /etc/oss/installed_drivers not found.
69
echo "=========" >> $LOG
70
find /devices -name *_mix* > /dev/null
71
find /devices -name *_pcm* > /dev/null
72
find /devices -name *_mid* > /dev/null
75
# Restore the legacy device links.
76
if test -f /etc/oss/legacy_devices
78
sh /etc/oss/legacy_devices >> $LOG 2>&1
81
echo "=========" >> $LOG
82
/usr/sbin/ossdevlinks -v >> $LOG 2>&1
83
ls -l /dev/*dsp* /dev/*_pcm* /dev/*mixer* /dev/*_mix* /dev/*midi* /dev/*_mid* >> $LOG 2>&1
84
echo "=========" >> $LOG
85
echo "OSS configuration" >> $LOG
86
/usr/bin/ossinfo -v3 >> $LOG 2>&1
87
echo "=========" >> $LOG
88
cat /dev/sndstat >> $LOG
90
if test -f /etc/oss/mixer.save || test -f /etc/oss/dspdevs.map || test -f /etc/oss/applist.conf
92
/usr/sbin/savemixer -L
95
echo "=========" >> $LOG
98
if grep "This OSS version has expired" /dev/sndstat > /dev/null
101
cat > /tmp/ossmsg << EOM
102
From: "Open Sound System" <root>
104
Subject: Your Open Sound System copy has expired
106
The unregistered version of Open Sound System installed in your system
107
has expired. To continue using Open Sound System you need to upgrade to the
108
latest OSS version which is available from http://www.opensound.com/download.cgi
110
Alternatively ou can purchase the official OSS version from
111
http://www.opensound.com/order.html . The registered version does not
112
have any time limits.
116
Open Sound System Sales
123
echo '********** IMPORTANT! *************'
127
mail root < /tmp/ossmsg
133
if test -x /etc/oss/soundon.user
135
echo Running /etc/oss/soundon.user >> $LOG
136
/etc/oss/soundon.user >> $LOG 2>&1
139
if test "`ossinfo -g|grep TRIAL` " != " "
142
echo "************************************************************"
143
echo "* NOTE! You are using trial version of Open Sound System *"
144
echo "************************************************************"
150
if test "`ossinfo -g|grep EXPIRED` " != " "
153
echo "****************************************************************"
154
echo "* NOTE! Your Open Sound System evaluation license has expired *"
155
echo "****************************************************************"