summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perl-install/install_steps.pm8
1 files changed, 5 insertions, 3 deletions
diff --git a/perl-install/install_steps.pm b/perl-install/install_steps.pm
index ebf31a10b..1f4cbf595 100644
--- a/perl-install/install_steps.pm
+++ b/perl-install/install_steps.pm
@@ -460,9 +460,11 @@ Consoles 1,3,4,7 may also contain interesting information";
substInFile {
s/^(GreetString)=.*/$1=$welcome/;
s/^(Language)=.*/$1=$LANG/;
- s/^(StdFont)=.*/$1=*,12,5,$charset,50,0/;
- s/^(FailFont)=.*/$1=*,12,5,$charset,75,0/;
- s/^(GreetFont)=.*/$1=*,24,5,$charset,50,0/;
+ if ($charset) {
+ s/^(StdFont)=.*/$1=*,12,5,$charset,50,0/;
+ s/^(FailFont)=.*/$1=*,12,5,$charset,75,0/;
+ s/^(GreetFont)=.*/$1=*,24,5,$charset,50,0/;
+ }
} "$o->{prefix}/usr/share/config/kdm/kdmrc";
}