summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone
diff options
context:
space:
mode:
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;
}