summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>1999-12-20 00:05:37 +0000
committerPascal Rigaux <pixel@mandriva.com>1999-12-20 00:05:37 +0000
commit73664f3bb1816f30dfe94f41ea6241a9c5328114 (patch)
tree5d2278393b17bb855173b88c47f85d153624cf9f /perl-install/standalone
parent3fae0b21431abe463ca6bfa2746d48d6a6756aa4 (diff)
downloaddrakx-73664f3bb1816f30dfe94f41ea6241a9c5328114.tar
drakx-73664f3bb1816f30dfe94f41ea6241a9c5328114.tar.gz
drakx-73664f3bb1816f30dfe94f41ea6241a9c5328114.tar.bz2
drakx-73664f3bb1816f30dfe94f41ea6241a9c5328114.tar.xz
drakx-73664f3bb1816f30dfe94f41ea6241a9c5328114.zip
no_comment
Diffstat (limited to 'perl-install/standalone')
-rwxr-xr-xperl-install/standalone/XFdrake6
-rwxr-xr-xperl-install/standalone/draksec3
2 files changed, 9 insertions, 0 deletions
diff --git a/perl-install/standalone/XFdrake b/perl-install/standalone/XFdrake
index b625647be..6b181d88a 100755
--- a/perl-install/standalone/XFdrake
+++ b/perl-install/standalone/XFdrake
@@ -36,6 +36,12 @@ $::skiptest = /-skiptest/;
$::testing = /-testing/;
$::isStandalone = 1;
+my $f = "/usr/X11R6/lib/X11/Cards";
+-e $f or system("urpmi --auto XFree86 XFree86-75dpi-fonts");
+-e $f or die "install XFree86 first!\n";
+
+`pidof xfs` > 0 or system("/etc/rc.d/init.d/xfs start");
+
system("mount /proc 2>/dev/null"); # ensure /proc is mounted for pci probing
my $in = vnew interactive('su');
diff --git a/perl-install/standalone/draksec b/perl-install/standalone/draksec
index 04d332541..2eb11319c 100755
--- a/perl-install/standalone/draksec
+++ b/perl-install/standalone/draksec
@@ -29,7 +29,10 @@ delete @l{0,1,5} unless $::expert;
if (my $level = $in->ask_from_list('', _("Choose security level"), [ values %l ], $l{$ENV{SECURE_LEVEL}})) {
my $w = $in->wait_message('', _("Setting security level"));
$in->suspend;
+
+ $ENV{LILO_PASSWORD} = ''; # make it non interactive
system("/etc/security/msec/init.sh ". $m{$level});
+
$in->resume;
}