aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorlcapriotti <lcapriotti@svn>2010-10-18 07:48:44 +0000
committerlcapriotti <lcapriotti@svn>2010-10-18 07:48:44 +0000
commit18677b8484921b7668b1255bd45eb95a7524a0e7 (patch)
tree8176a0edd63c509628ea72064d93e91c8929ee01 /tools
parent943a67e348ee00d7cece6567da9f7f48df6b360a (diff)
backport: r34819
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/branches/Dharma@34820 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'tools')
-rwxr-xr-xtools/XBMCLive/live.d/04-configNVIDIAasoundrc.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/XBMCLive/live.d/04-configNVIDIAasoundrc.sh b/tools/XBMCLive/live.d/04-configNVIDIAasoundrc.sh
index eddd322e8a..81cd2b7168 100755
--- a/tools/XBMCLive/live.d/04-configNVIDIAasoundrc.sh
+++ b/tools/XBMCLive/live.d/04-configNVIDIAasoundrc.sh
@@ -191,6 +191,7 @@ EOF
# Setup Triple Audiooutput
#
if [ ! -f /home/$xbmcUser/.xbmc/userdata/guisettings.xml ] ; then
+ mkdir -p /home/$xbmcUser/.xbmc/userdata &> /dev/null
cat > /home/$xbmcUser/.xbmc/userdata/guisettings.xml << 'EOF'
<settings>
<audiooutput>
@@ -202,6 +203,7 @@ EOF
</audiooutput>
</settings>
EOF
+ chown -R $xbmcUser:$xbmcUser /home/$xbmcUser/.xbmc
else
sed -i 's#\(<audiodevice>\)[0-9]*\(</audiodevice>\)#\1'custom'\2#g' /home/$xbmcUser/.xbmc/userdata/guisettings.xml
sed -i 's#\(<channellayout>\)[0-9]*\(</channellayout>\)#\1'0'\2#g' /home/$xbmcUser/.xbmc/userdata/guisettings.xml
@@ -209,7 +211,5 @@ EOF
sed -i 's#\(<mode>\)[0-9]*\(</mode>\)#\1'2'\2#g' /home/$xbmcUser/.xbmc/userdata/guisettings.xml
sed -i 's#\(<passthroughdevice>\)[0-9]*\(</passthroughdevice>\)#\1'alsa:hdmi'\2#g' /home/$xbmcUser/.xbmc/userdata/guisettings.xml
fi
-
- chown -R $xbmcUser:$xbmcUser /home/$xbmcUser/.xbmc
fi