aboutsummaryrefslogtreecommitdiff
path: root/tools/XBMCLive
diff options
context:
space:
mode:
authorlcapriotti <lcapriotti@svn>2010-10-18 07:47:27 +0000
committerlcapriotti <lcapriotti@svn>2010-10-18 07:47:27 +0000
commitd918880fbf8e0017991c9e5c9679767da21d5eaf (patch)
tree64d546710578aeab1e3289112daf54ea61b583c0 /tools/XBMCLive
parent75a21fe2e347ab6fabb4b2388d323ffeba09ef00 (diff)
need to be sure parent directory exists - credits erhnam
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@34819 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'tools/XBMCLive')
-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