diff options
author | Anssi Hannula <anssi@mageia.org> | 2011-04-20 23:32:50 +0000 |
---|---|---|
committer | Anssi Hannula <anssi@mageia.org> | 2011-04-20 23:32:50 +0000 |
commit | 681c38ee8d1c313431c93a00f6814cad37d3d7f0 (patch) | |
tree | f7ac312fcdd7903e5bb4e4023b8980131d5c01c0 /perl-install/standalone/service_harddrake_confirm | |
parent | 68309f62c90cbf0ec12c30f5da1c841f9527cec2 (diff) | |
download | drakx-681c38ee8d1c313431c93a00f6814cad37d3d7f0.tar drakx-681c38ee8d1c313431c93a00f6814cad37d3d7f0.tar.gz drakx-681c38ee8d1c313431c93a00f6814cad37d3d7f0.tar.bz2 drakx-681c38ee8d1c313431c93a00f6814cad37d3d7f0.tar.xz drakx-681c38ee8d1c313431c93a00f6814cad37d3d7f0.zip |
service_harddrake: add support for timeouted OK and Yes/No dialogs in
addition to the current OK/Cancel dialogs.
Diffstat (limited to 'perl-install/standalone/service_harddrake_confirm')
-rwxr-xr-x | perl-install/standalone/service_harddrake_confirm | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/perl-install/standalone/service_harddrake_confirm b/perl-install/standalone/service_harddrake_confirm index 914f644f8..f92807e2d 100755 --- a/perl-install/standalone/service_harddrake_confirm +++ b/perl-install/standalone/service_harddrake_confirm @@ -4,5 +4,14 @@ use common; use interactive; my $in = interactive->vnew; -my $res = $in->ask_okcancel($ARGV[0], $ARGV[1], 1); +my $res; + +if ($ARGV[0] eq "warn") { + $res = $in->ask_warn($ARGV[1], $ARGV[2]); +} elsif ($ARGV[0] eq "yesorno") { + $res = $in->ask_yesorno($ARGV[1], $ARGV[2], 1); +} elsif ($ARGV[0] eq "okcancel") { + $res = $in->ask_okcancel($ARGV[1], $ARGV[2], 1); +} + $in->exit($res); |