From 7ffc57b339ce4bc53e25bff07e0089054c455126 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 13 Sep 2005 16:13:43 +0000 Subject: better call Xconfig::various::runlevel() directly since it's not always called --- perl-install/install_steps.pm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'perl-install') diff --git a/perl-install/install_steps.pm b/perl-install/install_steps.pm index 8a731e6df..9a8930d94 100644 --- a/perl-install/install_steps.pm +++ b/perl-install/install_steps.pm @@ -572,9 +572,10 @@ EOF unlink(glob("$::prefix/root/drakx/*.upgrading")); if ($o->{upgrade_by_removing_pkgs_matching}) { - if (cat_("$::prefix/etc/inittab.rpmsave") =~ /^id:(\d):initdefault:\s*$/m) { - $o->{X}{xdm} = $1; - log::l("runlevel is $o->{X}{xdm} (as found in previous inittab)"); + if (cat_("$::prefix/etc/inittab.rpmsave") =~ /^id:5:initdefault:\s*$/m) { + $o->{X}{xdm} = 1; + require Xconfig::various; + Xconfig::various::runlevel(5); } } -- cgit v1.2.1