diff options
Diffstat (limited to 'audio/oss/files/patch-setup_FreeBSD_sbin_soundoff')
-rw-r--r-- | audio/oss/files/patch-setup_FreeBSD_sbin_soundoff | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/audio/oss/files/patch-setup_FreeBSD_sbin_soundoff b/audio/oss/files/patch-setup_FreeBSD_sbin_soundoff new file mode 100644 index 000000000000..5e324f2fb19c --- /dev/null +++ b/audio/oss/files/patch-setup_FreeBSD_sbin_soundoff @@ -0,0 +1,30 @@ +--- 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'`" + |