summaryrefslogtreecommitdiff
path: root/config/chroot_local-includes
diff options
context:
space:
mode:
Diffstat (limited to 'config/chroot_local-includes')
-rwxr-xr-xconfig/chroot_local-includes/lib/live/config/9025-xbmc-cfg46
1 files changed, 46 insertions, 0 deletions
diff --git a/config/chroot_local-includes/lib/live/config/9025-xbmc-cfg b/config/chroot_local-includes/lib/live/config/9025-xbmc-cfg
new file mode 100755
index 0000000..29e4332
--- /dev/null
+++ b/config/chroot_local-includes/lib/live/config/9025-xbmc-cfg
@@ -0,0 +1,46 @@
+#!/bin/sh
+
+Xbmccfg ()
+{
+ # Checking if configured
+ if [ -e /var/lib/live/config/xbmccfg ]
+ then
+ return
+ fi
+ echo -n " xbmc-cfg"
+ Configure_xbmccfg
+}
+Configure_xbmccfg ()
+{
+ # Boot parameters can be acted up either this way...
+ mkdir -p /home/${LIVE_USERNAME}/.xbmc/userdata
+ if grep -qs "keyboard-layouts=de" /proc/cmdline
+ then
+ # german
+cat > /home/${LIVE_USERNAME}/.xbmc/userdata/guisettings.xml <<"EOF"
+<settings>
+ <locale>
+ <country>Deutschland</country>
+ <language>German</language>
+ </locale>
+ <defaultvideosettings>
+ <deinterlacemode>1</deinterlacemode>
+ </defaultvideosettings>
+</settings>
+EOF
+ else
+ # default
+cat > /home/${LIVE_USERNAME}/.xbmc/userdata/guisettings.xml <<"EOF"
+<settings>
+ <defaultvideosettings>
+ <deinterlacemode>1</deinterlacemode>
+ </defaultvideosettings>
+</settings>
+EOF
+ fi
+ chown -R 1000:1000 /home/${LIVE_USERNAME}/.xbmc
+ # Creating state file
+ touch /var/lib/live/config/xbmccfg
+}
+
+Xbmccfg