X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive-bottom%2F35fix_language_selector;h=70495c4c8fd36b498567193d9abf490b189ac15d;hb=7ea27f7f7c468dc524bc07ca3565d6ace65b8aff;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..70495c4 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..." # 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