X-Git-Url: http://git.grml.org/?p=grml-autoconfig.git;a=blobdiff_plain;f=autoconfig.functions;h=921be17b27b9faa83ad35510348e5457cae13cbc;hp=936a94a6035fdd8c08d9b0850531bd9f3a6ee4fb;hb=9bc079508a6358e38f335657021736f047a9b835;hpb=554cf6e7175743a8fe3d9d938e7d9899056fa9a8 diff --git a/autoconfig.functions b/autoconfig.functions index 936a94a..921be17 100755 --- a/autoconfig.functions +++ b/autoconfig.functions @@ -204,12 +204,16 @@ config_language(){ # set default to 'en' in live-cd mode if $LANGUAGE is not yet set: if [ -z "$INSTALLED" ] ; then - [ -n "$LANGUAGE" ] || LANGUAGE='en-utf8' + [ -n "$LANGUAGE" ] || LANGUAGE='us' fi # if bootoption lang is used update /etc/default/locale, otherwise *not*! - if [ -n "$BOOT_LANGUAGE" ] ; then - [ -x /usr/sbin/grml-setlang ] && /usr/sbin/grml-setlang "$LANGUAGE" + if [ -n "$BOOT_LANGUAGE" -a -x /usr/sbin/grml-setlang ] ; then + if checkgrmlsmall ; then + /usr/sbin/grml-setlang "POSIX" + else + /usr/sbin/grml-setlang "$LANGUAGE" + fi fi # set console font @@ -826,7 +830,7 @@ config_swspeak(){ if checkbootparam swspeak ; then einfo "Bootoption swspeak found." - if [ ! -d /proc/speakup/ ] && ! grep -q speakup /proc/modules ; then + if [ ! -d /proc/speakup/ ] && ! grep -q speakup_soft /proc/modules ; then ewarn "Kernel does not support software speakup - trying to load kernel module:" ; eend 0 eindent einfo "Loading speakup_soft" @@ -840,20 +844,11 @@ config_swspeak(){ eoutdent fi - if [ -d /proc/speakup/ ] || grep -q speakup /proc/modules ; then + if [ -d /proc/speakup/ ] || grep -q speakup_soft /proc/modules ; then einfo "Kernel supports speakup." ; eend 0 eindent - if [ -x /etc/init.d/speech-dispatcher ] ; then - einfo "Starting speech-dispatcher." - /etc/init.d/speech-dispatcher start 1>>DEBUG ; eend $? - einfo "Activating sftsyn in Kernel." - echo sftsyn >/proc/speakup/synth_name ; eend $? einfo "Just run swspeak if you want to use software synthesizer via speakup." flitewrapper "Finished activating software speakup. Just run swspeak when booting finished." - else - eerror "speech-dispatcher not available. swspeak will not work without it." ; eend 1 - flitewrapper "speech-dispatcher not available. speakup will not work without it." - fi eoutdent else eerror "Kernel does not seem to support speakup. Skipping swspeak." ; eend 1