X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive-bottom%2F35fix_language_selector;h=8452d1200047702047088b12223920d6a1f7e0ae;hb=ad7598cb46a5a6268ca60e5dba156056fb86c09d;hp=1c9af0a0fb1d1de8c2086789167f9b58c8fbf1a0;hpb=ccea277caf476cdfef4c0f953df5a97062d8be42;p=live-boot-grml.git diff --git a/scripts/live-bottom/35fix_language_selector b/scripts/live-bottom/35fix_language_selector index 1c9af0a..8452d12 100755 --- a/scripts/live-bottom/35fix_language_selector +++ b/scripts/live-bottom/35fix_language_selector @@ -20,19 +20,25 @@ esac # live-initramfs header +if [ -n "${NOLANGUAGESELECTOR}" ] +then + exit 0 +fi + . /scripts/live-functions -log_begin_msg "Fixing language selector..." +log_begin_msg "Fixing language selector" # live-initramfs script -if [ -e /root/usr/share/applications/language-selector.desktop ]; then - sed -i '/^Exec/ s|/usr/bin/gnome-language-selector|"& -n"|' /root/usr/share/applications/language-selector.desktop - +if [ -e /root/usr/share/applications/language-selector.desktop ] +then + sed -i '/^Exec/ s|/usr/bin/gnome-language-selector|& -n|' /root/usr/share/applications/language-selector.desktop fi -if [ -x /root/usr/bin/fontconfig-voodoo ]; then - chroot /root fontconfig-voodoo --auto --quiet || true +if [ -x /root/usr/bin/fontconfig-voodoo ] +then + chroot /root fontconfig-voodoo --auto --quiet || true fi log_end_msg