mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-02 01:20:54 +00:00
31 lines
800 B
Plaintext
31 lines
800 B
Plaintext
--- setup/FreeBSD/sbin/soundoff.orig 2011-01-04 20:33:08.000000000 -0500
|
|
+++ setup/FreeBSD/sbin/soundoff 2011-01-06 13:59:37.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
|
|
|
|
if ! /sbin/kldstat | grep -q osscore.ko
|
|
@@ -22,11 +22,11 @@
|
|
# 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'`"
|
|
|