summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/mousedrake
diff options
context:
space:
mode:
authorMystery Man <unknown@mandriva.org>2004-06-15 16:50:22 +0000
committerMystery Man <unknown@mandriva.org>2004-06-15 16:50:22 +0000
commit8ea9beca90c410e12593fedfb6e741dbdf8795d0 (patch)
tree544a377d0ea57462110009fbbbfd14473390e2a1 /perl-install/standalone/mousedrake
parentb5dc638815c772056e07cd013f5b1674900456d5 (diff)
downloaddrakx-8ea9beca90c410e12593fedfb6e741dbdf8795d0.tar
drakx-8ea9beca90c410e12593fedfb6e741dbdf8795d0.tar.gz
drakx-8ea9beca90c410e12593fedfb6e741dbdf8795d0.tar.bz2
drakx-8ea9beca90c410e12593fedfb6e741dbdf8795d0.tar.xz
drakx-8ea9beca90c410e12593fedfb6e741dbdf8795d0.zip
This commit was manufactured by cvs2svn to create branch 'mandrakesoft'.topic/mandrakesoft
Diffstat (limited to 'perl-install/standalone/mousedrake')
-rwxr-xr-xperl-install/standalone/mousedrake74
1 files changed, 0 insertions, 74 deletions
diff --git a/perl-install/standalone/mousedrake b/perl-install/standalone/mousedrake
deleted file mode 100755
index b847b7632..000000000
--- a/perl-install/standalone/mousedrake
+++ /dev/null
@@ -1,74 +0,0 @@
-#!/usr/bin/perl
-
-use lib qw(/usr/lib/libDrakX);
-
-use standalone; #- warning, standalone must be loaded very first, for 'explanations'
-
-use common;
-use interactive;
-use modules;
-use mouse;
-use c;
-
-
-my $in = 'interactive'->vnew('su');
-
-modules::mergein_conf('/etc/modules.conf') if -r '/etc/modules.conf';
-
-undef $::Plug;
-begin:
-my $mouse = mouse::read();
-my %old = %$mouse;
-
-if (!$::noauto) {
- my $probed_mouse = mouse::detect();
- $mouse = $probed_mouse if !$mouse->{XMOUSETYPE} || !$probed_mouse->{unsafe};
-}
-
-if (!$mouse || !$::auto) {
- $mouse ||= mouse::fullname2mouse("serial|Generic 2 Button Mouse");
- my $test_hbox;
- my $name = $in->ask_from_treelistf('mousedrake', N("Please choose your mouse type."), '|',
- sub { join '|', map { translate($_) } split '\|', $_[0] },
- [ mouse::fullnames ],
- $mouse->{type} . '|' . $mouse->{name});
- $name or $in->exit(0);
- my $mouse_chosen = mouse::fullname2mouse($name);
- $mouse = $mouse_chosen if !($mouse->{type} eq $mouse_chosen->{type} && $mouse->{name} eq $mouse_chosen->{name});
-
- if ($mouse->{device} eq "usbmouse") {
- modules::load_category('bus/usb') or die 'no usb bus found\n';
- modules::load(qw(hid mousedev usbmouse));
- }
-
- $mouse->{XEMU3} = 'yes' if $mouse->{nbuttons} < 3 && (!$::noauto || $in->ask_yesorno('', N("Emulate third button?"), 1));
-
- $mouse->{device} = $in->ask_from_listf(N("Mouse Port"),
- N("Please choose which serial port your mouse is connected to."),
- \&mouse::serial_port2text,
- [ mouse::serial_ports ],
- $mouse->{device},
- ) || goto begin if $mouse->{type} eq 'serial';
- $test_hbox and $test_hbox->destroy;
-}
-
-mouse::write_conf($in, $mouse, 1);
-
-if ($in->isa('interactive::gtk') && mouse::change_mouse_live($mouse, \%old)) {
-
- require ugtk2;
- ugtk2->import(qw(:wrappers :create));
- my $w = ugtk2->new(N("Mouse test"));
- gtkadd($w->{window},
- gtkpack(Gtk2::VBox->new(0, 5),
- Gtk2::Label->new(N("Please test your mouse:")),
- my $test_hbox = Gtk2::HBox->new(0, 5),
- $w->create_okcancel));
- mouse::test_mouse_standalone($mouse, $test_hbox);
- $w->main or goto begin;
-}
-
-system('service', 'gpm', 'restart') if -e '/var/lock/subsys/gpm';
-
-$in->exit(0);
-goto begin;