From 45992494ccd32cf112f1e9de7ced6257efb18c7b Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Wed, 20 Sep 2000 11:39:05 +0000 Subject: new urpmi calls --- perl-install/standalone/XFdrake | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'perl-install/standalone/XFdrake') diff --git a/perl-install/standalone/XFdrake b/perl-install/standalone/XFdrake index a8b4d934f..88db4c23d 100755 --- a/perl-install/standalone/XFdrake +++ b/perl-install/standalone/XFdrake @@ -39,12 +39,12 @@ $::noauto = /-noauto/; $::testing = /-testing/; $i->{skiptest} = /-skiptest/; +my $in = interactive->vnew('su'); + my $f = "/usr/X11R6/lib/X11/Cards"; --e $f or system("urpmi --auto XFree86 XFree86-75dpi-fonts"); +if (!-e $f) { $in->suspend; system("urpmi --auto --best-output XFree86 XFree86-75dpi-fonts"); $in->resume; } -e $f or die "install XFree86 first!\n"; -my $in = interactive->vnew('su'); - `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 @@ -52,7 +52,10 @@ system("mount /proc 2>/dev/null"); # ensure /proc is mounted for pci probing Xconfig::getinfoFromXF86Config($i) if $0 =~ Xdrakres; Xconfig::getinfo($i); -Xconfigurator::main('', $i, $in, 0, -e "/etc/pcmcia", sub { my ($server, @l) = @_; - system("urpmi --auto XFree86-$server " . join(' ', @l)) }); - +Xconfigurator::main('', $i, $in, 0, -e "/etc/pcmcia", + sub { my ($server, @l) = @_; + $in->suspend; + system("urpmi --auto --best-output XFree86-$server " . join(' ', @l)); + $in->resume; + }); $in->exit(0); -- cgit v1.2.1