--- setup/FreeBSD/sbin/soundoff.orig 2014-02-14 22:59:55 UTC +++ setup/FreeBSD/sbin/soundoff @@ -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 if ! /sbin/kldstat | grep -q osscore.ko @@ -22,11 +22,11 @@ fi # Save mixer settings automatically if requested if test -f $OSSLIBDIR/etc/userdefs && grep -q "autosave_mixer yes" $OSSLIBDIR/etc/userdefs then - /usr/sbin/savemixer + %%PREFIX%%/sbin/savemixer fi # Save legacy devices -/usr/sbin/ossdevlinks -N +%%PREFIX%%/sbin/ossdevlinks -N PROGRAMS="`fstat /dev/mixer* /dev/dsp* /dev/midi* /dev/oss/*/* 2>/dev/null | sed '1 D'`"