diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2001-02-20 01:09:07 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2001-02-20 01:09:07 +0000 |
commit | 1d27dbf5e28c61be9eeb078c44f2481fb25e7195 (patch) | |
tree | 2ad14181e14cca6244b53fa2c6856e5d17fd8d8d /perl-install/standalone | |
parent | a7463f88ccd1e833fcecec5c76ac47c804e060c0 (diff) | |
download | drakx-1d27dbf5e28c61be9eeb078c44f2481fb25e7195.tar drakx-1d27dbf5e28c61be9eeb078c44f2481fb25e7195.tar.gz drakx-1d27dbf5e28c61be9eeb078c44f2481fb25e7195.tar.bz2 drakx-1d27dbf5e28c61be9eeb078c44f2481fb25e7195.tar.xz drakx-1d27dbf5e28c61be9eeb078c44f2481fb25e7195.zip |
major move. now ask_from_list returns false when canceled (it doesn't die 'ask_from_list canceled' anymore)
Diffstat (limited to 'perl-install/standalone')
-rwxr-xr-x | perl-install/standalone/keyboarddrake | 12 | ||||
-rwxr-xr-x | perl-install/standalone/mousedrake | 2 |
2 files changed, 9 insertions, 5 deletions
diff --git a/perl-install/standalone/keyboarddrake b/perl-install/standalone/keyboarddrake index 6a0b86d86..6e89d353e 100755 --- a/perl-install/standalone/keyboarddrake +++ b/perl-install/standalone/keyboarddrake @@ -28,7 +28,7 @@ $keyboard ||= $in->ask_from_listf_(_("Keyboard"), _("Please, choose your keyboard layout."), \&keyboard::keyboard2text, [ keyboard::keyboards() ], - keyboard::read()); + keyboard::read()) or $in->exit(0); keyboard::keyboard2text($keyboard) or die "bad keyboard $keyboard\n"; @@ -61,6 +61,10 @@ substInFile { keyboard::write('', $keyboard, $isNotDelete); -$::isEmbedded ? kill(USR1, $::CCPID) : $in->exit(0); -$keyboard=''; -goto begin; +if ($::isEmbedded) { + kill(USR1, $::CCPID); + $keyboard = ''; + goto begin; +} else { + $in->exit(0); +} diff --git a/perl-install/standalone/mousedrake b/perl-install/standalone/mousedrake index aff16a1b6..ebb332f89 100755 --- a/perl-install/standalone/mousedrake +++ b/perl-install/standalone/mousedrake @@ -42,7 +42,7 @@ $o->{mouse}{device} = $o->ask_from_listf(_("Mouse Port"), _("Please choose on which serial port your mouse is connected to."), \&mouse::serial_port2text, - [ mouse::serial_ports ]) if $mouse->{type} eq 'serial'; + [ mouse::serial_ports ]) || goto begin if $mouse->{type} eq 'serial'; dumpValue(\$mouse); mouse::write_conf($mouse); |