summaryrefslogtreecommitdiff
path: root/audio/oss/files/patch-setup-FreeBSD-sbin-soundoff
blob: 14369cd647f320fa7361ee0d1fb101b4da40d9eb (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
--- setup/FreeBSD/sbin/soundoff.orig	2007-07-18 19:22:00.000000000 -0400
+++ setup/FreeBSD/sbin/soundoff	2007-09-05 13:18:02.000000000 -0400
@@ -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%%/usr/lib/oss
 fi
 
 if ! /sbin/kldstat | grep -q osscore.ko
@@ -22,7 +22,7 @@
 # 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
 
 for n in `cat $OSSLIBDIR/etc/installed_drivers | sed 's/ .*//'`