48 lines
1.1 KiB
Text
48 lines
1.1 KiB
Text
--- setup/FreeBSD/sbin/soundon.orig 2008-09-16 16:55:03.000000000 -0400
|
|
+++ setup/FreeBSD/sbin/soundon 2008-12-11 15:14:31.000000000 -0500
|
|
@@ -1,10 +1,10 @@
|
|
#!/bin/sh
|
|
|
|
-if test -f /etc/oss.conf
|
|
+if test -f %%PREFIX%%/etc/oss.conf
|
|
then
|
|
- . /etc/oss.conf
|
|
+ . %%PREFIX%%/etc/oss.conf
|
|
else
|
|
- OSSLIBDIR=/usr/lib/oss
|
|
+ OSSLIBDIR=%%PREFIX%%/lib/oss
|
|
fi
|
|
|
|
LOG=/var/log/soundon.log
|
|
@@ -29,7 +29,7 @@
|
|
|
|
if test -f $OSSLIBDIR/etc/license.asc
|
|
then
|
|
- /usr/sbin/ossdetect -l >> $LOG
|
|
+ %%PREFIX%%/sbin/ossdetect -l >> $LOG
|
|
fi
|
|
|
|
OPTIONS=
|
|
@@ -70,7 +70,7 @@
|
|
done
|
|
|
|
echo "+++ ossinfo -v3 +++" >> $LOG
|
|
-/usr/bin/ossinfo -v3 >> $LOG 2>&1
|
|
+%%PREFIX%%/bin/ossinfo -v3 >> $LOG 2>&1
|
|
echo "+++ /dev/sndstat +++" >> $LOG
|
|
cat /dev/sndstat >> $LOG 2>&1
|
|
echo "+++ dmesg +++" >> $LOG
|
|
@@ -85,11 +85,11 @@
|
|
sh $OSSLIBDIR/etc/legacy_devices >> $LOG 2>&1
|
|
fi
|
|
|
|
-/usr/sbin/ossdevlinks -v >> $LOG 2>&1
|
|
+%%PREFIX%%/sbin/ossdevlinks -v >> $LOG 2>&1
|
|
|
|
ls -l /dev/dsp* /dev/sndstat /dev/mixer* /dev/oss/*/* >> $LOG 2>&1
|
|
|
|
-/usr/sbin/savemixer -L -v >> $LOG 2>&1
|
|
+%%PREFIX%%/sbin/savemixer -L -v >> $LOG 2>&1
|
|
|
|
if test -x $OSSLIBDIR/soundon.user
|
|
then
|