summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/XFdrake
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2000-09-20 11:39:05 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2000-09-20 11:39:05 +0000
commit45992494ccd32cf112f1e9de7ced6257efb18c7b (patch)
tree783fb00295985d853e7528a23724ea0b51d69933 /perl-install/standalone/XFdrake
parente1c3152ed9c30f39b18077938e991518399f3927 (diff)
downloaddrakx-45992494ccd32cf112f1e9de7ced6257efb18c7b.tar
drakx-45992494ccd32cf112f1e9de7ced6257efb18c7b.tar.gz
drakx-45992494ccd32cf112f1e9de7ced6257efb18c7b.tar.bz2
drakx-45992494ccd32cf112f1e9de7ced6257efb18c7b.tar.xz
drakx-45992494ccd32cf112f1e9de7ced6257efb18c7b.zip
new urpmi calls
Diffstat (limited to 'perl-install/standalone/XFdrake')
-rwxr-xr-xperl-install/standalone/XFdrake15
1 files changed, 9 insertions, 6 deletions
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);