diff options
author | Holger Paradies <retabell@gmx.de> | 2014-05-07 12:59:50 +0200 |
---|---|---|
committer | Holger <holger@Himbeere> | 2014-05-07 17:04:52 +0200 |
commit | ba56a5214eb6d8e86920c93ee76e47a8698dfccf (patch) | |
tree | a20c2479de3e9f1d821925dfe392f75c8cfaa29f /config | |
parent | 58dfe00bca052304df7fde98113071a741119a77 (diff) | |
download | kanotix-ba56a5214eb6d8e86920c93ee76e47a8698dfccf.zip kanotix-ba56a5214eb6d8e86920c93ee76e47a8698dfccf.tar.gz |
xbmc-config
Diffstat (limited to 'config')
-rwxr-xr-x | config/chroot_local-includes/lib/live/config/9025-xbmc-cfg | 46 |
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 |