aboutsummaryrefslogtreecommitdiff
path: root/audio/oss/files/patch-setup-FreeBSD-sbin-soundoff
blob: d4a0fef76c2f711f498dab2bf65201eea5e85645 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
--- 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'`"