summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/notify-x11-free-driver-switch
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-03-21 16:47:39 +0000
committerOlivier Blin <oblin@mandriva.com>2008-03-21 16:47:39 +0000
commit142593316e874567dfaa7164a6a7c36d46ea7f30 (patch)
tree7eba98767658c1309dbaf1654d6bcc412e34b963 /perl-install/standalone/notify-x11-free-driver-switch
parent5b24d850345c1f4e3053ab68827ccc2af90d3982 (diff)
downloaddrakx-142593316e874567dfaa7164a6a7c36d46ea7f30.tar
Diffstat (limited to 'perl-install/install_steps.pm')
-rw-r--r--perl-install/install_steps.pm10
Diffstat (limited to 'perl-install/standalone/notify-x11-free-driver-switch')
-rwxr-xr-xperl-install/standalone/notify-x11-free-driver-switch16
1 files changed, 16 insertions, 0 deletions
diff --git a/perl-install/standalone/notify-x11-free-driver-switch b/perl-install/standalone/notify-x11-free-driver-switch
new file mode 100755
index 000000000..fd43416a1
--- /dev/null
+++ b/perl-install/standalone/notify-x11-free-driver-switch
@@ -0,0 +1,16 @@
+#!/usr/bin/perl
+use lib qw(/usr/lib/libDrakX);
+use standalone;
+use interactive;
+use common;
+
+$::isStandalone = 0;
+my $in = 'interactive'->vnew;
+my $driver = eval {
+ require Xconfig::xfree;
+ $raw_X = Xconfig::xfree->read;
+ $raw_X->get_Driver;
+} || N("unknown");
+
+$in->ask_warn(N("Warning"), N("The proprietary driver for your graphic card can not be found, the system is now using the free software driver (%s).", $driver));
+unlink $0 if $0 =~ m!/etc/X11/xsetup.d/!;
) {
network::down_it($o->{prefix}, $o->{intf});
- } elsif ($o->{modem} && $o->{modem}{isUp}) {
+ } elsif ($o->{netcnx}{modem} && $o->{netcnx}{modem}{isUp}) {
run_program::rooted($o->{prefix}, "ifdown", "ppp0");
run_program::rooted($o->{prefix}, "/etc/rc.d/init.d/syslog", "stop");
eval { modules::unload($_) foreach qw(ppp_deflate bsd_comp ppp serial) };
- $o->{modem}{isUp} = 0;
+ $o->{netcnx}{modem}{isUp} = 0;
} else {
$::testing or return;
}