X-Git-Url: https://git.grml.org/?p=grml-autoconfig.git;a=blobdiff_plain;f=autoconfig.functions;h=7714ef26ab06874dab2dfdd824ff597d5f4d2ac7;hp=5c8e08772a0a919b94945a6242f6ca4427d1658b;hb=571636c61251f288d4d0fc22ec650298e344740f;hpb=9eeb806d12012b16f75ccdf78f680b8ca9e5f569 diff --git a/autoconfig.functions b/autoconfig.functions index 5c8e087..7714ef2 100755 --- a/autoconfig.functions +++ b/autoconfig.functions @@ -197,7 +197,7 @@ config_language(){ # set default to 'en' in live-cd mode if $LANGUAGE is not yet set: if [ -z "$INSTALLED" ] ; then - [ -n "$LANGUAGE" ] || LANGUAGE='en' + [ -n "$LANGUAGE" ] || LANGUAGE='en-utf8' fi # if bootoption lang is used update /etc/default/locale, otherwise *not*! @@ -209,10 +209,11 @@ config_language(){ if [ -z "$CONSOLEFONT" ] ; then if ! checkbootparam "nodefaultfont" >>$DEBUG 2>&1 ; then # [ -n "$UTF8" ] && CONSOLEFONT='LatArCyrHeb-16' || CONSOLEFONT='Lat15-Terminus16' - if [ -r /usr/share/consolefonts/Lat15-Terminus16.psf.gz ] ; then - CONSOLEFONT='Lat15-Terminus16' + # if [ -r /usr/share/consolefonts/Lat15-Terminus16.psf.gz ] ; then + if [ -r /usr/share/consolefonts/Uni3-Terminus14.psf.gz ] ; then + CONSOLEFONT='Uni3-Terminus14' else - ewarn "/usr/share/consolefonts/Lat15-Terminus16.psf.gz not available. Please upgrade package console-terminus." ; eend 1 + ewarn "/usr/share/consolefonts/Uni3-Terminus14.psf.gz not available. Please upgrade package console-terminus." ; eend 1 fi fi fi @@ -280,9 +281,9 @@ config_language(){ consolechars -f $CONSOLEFONT || consolechars -d eend $? - if [ -n "$UTF8" ] ; then - einfo "Notice: run 'filterm - dynafont' in your shell to enable a unicode capable console." - fi +# if [ -n "$UTF8" ] ; then +# einfo "Notice: run 'filterm - dynafont' in your shell to enable a unicode capable console." +# fi fi # we have to set up all consoles, therefore loop it over all ttys: @@ -335,7 +336,11 @@ config_time(){ checkbootparam utc >>$DEBUG 2>&1 && UTC="-u" checkbootparam gmt >>$DEBUG 2>&1 && UTC="-u" # hwclock uses the TZ variable - . /etc/default/locale + if [ -r /etc/default/locale ] ; then + . /etc/default/locale + else + TZ=Europe/Vienna + fi ERROR=$(TZ="$TZ" hwclock $UTC -s 2>&1) ; RC=$? if [ -n "$ERROR" ] ; then eindent