diff options
Diffstat (limited to 'audio/oss/files/patch-setup_FreeBSD_sbin_soundon')
-rw-r--r-- | audio/oss/files/patch-setup_FreeBSD_sbin_soundon | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/audio/oss/files/patch-setup_FreeBSD_sbin_soundon b/audio/oss/files/patch-setup_FreeBSD_sbin_soundon new file mode 100644 index 000000000000..ac0076f71181 --- /dev/null +++ b/audio/oss/files/patch-setup_FreeBSD_sbin_soundon @@ -0,0 +1,66 @@ +--- setup/FreeBSD/sbin/soundon.orig 2014-02-14 22:59:55 UTC ++++ setup/FreeBSD/sbin/soundon +@@ -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 @@ fi + + if test -f $OSSLIBDIR/etc/license.asc + then +- /usr/sbin/ossdetect -l >> $LOG ++ %%PREFIX%%/sbin/ossdetect -l >> $LOG + fi + + OPTIONS= +@@ -70,7 +70,7 @@ do + 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 @@ then + 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 +@@ -97,7 +97,7 @@ then + $OSSLIBDIR/soundon.user >> $LOG 2>&1 + fi + +-if test "`ossinfo -g|grep TRIAL` " != " " ++if test "`%%PREFIX%%/bin/ossinfo -g|grep TRIAL` " != " " + then + echo + echo "************************************************************" +@@ -108,7 +108,7 @@ then + sleep 1 + fi + +-if test "`ossinfo -g|grep EXPIRED` " != " " ++if test "`%%PREFIX%%/bin/ossinfo -g|grep EXPIRED` " != " " + then + echo + echo "****************************************************************" |