summaryrefslogtreecommitdiffstats
path: root/abs/core/LinHES-config/soundconfig.sh
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-08-31 00:32:55 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-08-31 00:33:52 (GMT)
commitad894491177cc6b401ee07dd58ddbfd1226811f9 (patch)
treecb3714a6db58375c474e27ecfed0ad7d91cdd2d2 /abs/core/LinHES-config/soundconfig.sh
parent34f908229a491458a8d12f11c8afb4feffb74cad (diff)
downloadlinhes_pkgbuild-ad894491177cc6b401ee07dd58ddbfd1226811f9.zip
linhes_pkgbuild-ad894491177cc6b401ee07dd58ddbfd1226811f9.tar.gz
linhes_pkgbuild-ad894491177cc6b401ee07dd58ddbfd1226811f9.tar.bz2
LinHES-config: removing references to /home/mythv
install_functions.sh added function home_check to aid in removing references to /home/mythtv MythVantage.sh : setup MYTHHOME soundconfig and xconfig both had references but were not used
Diffstat (limited to 'abs/core/LinHES-config/soundconfig.sh')
-rwxr-xr-xabs/core/LinHES-config/soundconfig.sh10
1 files changed, 6 insertions, 4 deletions
diff --git a/abs/core/LinHES-config/soundconfig.sh b/abs/core/LinHES-config/soundconfig.sh
index c4e1cc7..b9eb906 100755
--- a/abs/core/LinHES-config/soundconfig.sh
+++ b/abs/core/LinHES-config/soundconfig.sh
@@ -10,6 +10,8 @@ TESTFILE="/usr/share/sounds/alsa/Front_Center.wav"
OSSinstalled="false"
BLACKLIST=/etc/modprobe.d/soundconfig_blacklist.conf
+. /usr/MythVantage/bin/install_functions.sh
+home_check
echo "---------------------------------------"
@@ -86,9 +88,9 @@ function installOSS {
function SYNCXINE {
echo "modify xine config file"
- if [ -f /data/home/mythtv/.xine/config ]
+ if [ -f $MYTHHOME/.xine/config ]
then
- cp -f /data/home/mythtv/.xine/config $TEMPLATES/xine.config
+ cp -f $MYTHHOME/.xine/config $TEMPLATES/xine.config
else
cp $TEMPLATES/xine.config.template $TEMPLATES/xine.config
fi
@@ -100,9 +102,9 @@ echo "modify xine config file"
-e "s/^.audio.device.oss_device_name.*$/audio.device.oss_device_name:\/dev\/dsp/" \
-e "s/^.audio.devic.oss_device_number.*$/audio.device.oss_device_number:$DEVICENUMER/" \
-e "s/^.*audio.output.speaker_arrangement:.*$/Audio.output.speaker_arrangement:PassThrough/" \
- $TEMPLATES/xine.config > /data/home/mythtv/.xine/config
+ $TEMPLATES/xine.config > $MYTHHOME/.xine/config
else
- cp $TEMPLATES/xine.config /data/home/mythtv/.xine/config
+ cp $TEMPLATES/xine.config $MYTHHOME/.xine/config
fi
}