diff options
Diffstat (limited to 'perl-install/standalone/drakauth')
| -rwxr-xr-x | perl-install/standalone/drakauth | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/perl-install/standalone/drakauth b/perl-install/standalone/drakauth index c48792ad9..c68a75b84 100755 --- a/perl-install/standalone/drakauth +++ b/perl-install/standalone/drakauth @@ -19,18 +19,19 @@ my $in = 'interactive'->vnew('su'); my $authentication = {}; # TODO my $kind = authentication::to_kind($authentication); +my $meta_class = { getVarsFromSh("/etc/sysconfig/system") }->{META_CLASS}; main: -$in->ask_from('', '', +$in->ask_from(N("Authentication"), authentication::kind2description(), [ - { label => N("Authentication"), val => \$kind, type => 'list' , list => [ authentication::kinds() ], format => \&authentication::kind2description }, + { label => N("Authentication"), val => \$kind, type => 'list' , list => [ authentication::kinds($meta_class) ], format => \&authentication::kind2name }, ]) or $in->exit; authentication::ask_parameters($in, $netc, $authentication, $kind) or goto main; eval { - authentication::set($in, $netc, $authentication, sub { my ($f) = @_; $f->() }); - network::network::write_conf("$::prefix/etc/sysconfig/network", $netc); + authentication::set($in, $netc, $authentication); + network::network::write_conf($netc); }; if (my $err = $@) { $in->ask_warn(N("Error"), formatError($err)); |
