5
if test "$CONFDIR " = " "
10
# Remove the non-oss ICH driver before doing anything else
11
/etc/conf/bin/idinstall -R $CONFDIR -d ich > /dev/null 2>&1
13
# Unload previous modules
14
for n in `ls $OSSLIBDIR/modules|egrep -v "osscore|oss_imux"`
16
modadmin -U $n > /dev/null 2>&1
19
for MOD in osscore oss_imux
21
modadmin -U $MOD > /dev/null 2>&1
24
# (re)install osscore and oss_imux
26
rm -f $OSSLIBDIR/modules/*/install.log
28
for MOD in osscore oss_imux
30
cd $OSSLIBDIR/modules/$MOD
34
cp $OSSLIBDIR/space.inst/$MOD Space.c
39
if /etc/conf/bin/idinstall -k -P oss -R $CONFDIR -M $MOD >> install.log 2>&1
41
if /etc/conf/bin/idbuild -M $MOD >> install.log 2>&1
43
echo OSS module $MOD installed OK
44
echo OSS module $MOD installed OK >> install.log
47
echo Building $MOD module failed
48
echo Building $MOD module failed >> install.log
53
echo Failed to idinstall $MOD
54
echo Failed to idinstall $MOD >> install.log
58
(cd $OSSLIBDIR/conf && rm -f $MOD.conf && ln -sf ../modules/$MOD/Space.c $MOD.conf)
60
installf oss $CONFDIR/sdevice.d/$MOD
64
# Only install the drivers we have a resmgr match for
65
OSSTMPFILE=/tmp/ossdetect.$$
68
/sbin/resmgr -p BRDID > $OSSTMPFILE
72
grep "^|" $file | cut -d \| -f3 | while read BRDID
74
if [ -n "$BRDID" ]; then
77
if [ "$BRDID" = "$RMBRDID" ]; then
83
done | sort -u | while read DRVR
85
cd $OSSLIBDIR/modules/$DRVR
89
cp $OSSLIBDIR/../space.inst/$n Space.c
94
# /etc/conf/bin/idinstall -R $CONFDIR -d $DRVR > /dev/null 2>&1
96
if /etc/conf/bin/idinstall -k -P oss -R $CONFDIR -M $DRVR >> install.log 2>&1
98
if /etc/conf/bin/idbuild -M $DRVR >> install.log 2>&1
100
echo OSS module $DRVR installed OK
101
echo OSS module $DRVR installed OK >> install.log
104
echo Building $DRVR module failed
105
echo Building $DRVR module failed >> install.log
110
echo Failed to idinstall $DRVR
111
echo Failed to idinstall $DRVR >> install.log
114
installf oss $CONFDIR/sdevice.d/$DRVR
116
(cd $OSSLIBDIR/conf && rm -f $DRVR.conf && \
117
ln -sf ../modules/$DRVR/Space.c $DRVR.conf)
131
if test ! -f $OSSLIBDIR/etc/installed_drivers
133
echo "----------------------------------------------"
134
/usr/sbin/ossdetect -v
135
echo "----------------------------------------------"
137
echo OSS modules installed OK