summaryrefslogtreecommitdiff
path: root/scripts/live-bottom/35fix_language_selector
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/live-bottom/35fix_language_selector')
-rwxr-xr-xscripts/live-bottom/35fix_language_selector16
1 files changed, 11 insertions, 5 deletions
diff --git a/scripts/live-bottom/35fix_language_selector b/scripts/live-bottom/35fix_language_selector
index 1c9af0a..126a5b2 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