diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2004-01-20 11:59:35 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2004-01-20 11:59:35 +0000 |
commit | 038e2b5d78e9acf85b9fcbb9691681fb7e0f1d86 (patch) | |
tree | c7d42a5c18a55b0fcfd6ac6016f7661ebcec85e5 | |
parent | ee305b0b80b30463b80a00144c972adba9ed576d (diff) | |
download | drakx-backup-do-not-use-038e2b5d78e9acf85b9fcbb9691681fb7e0f1d86.tar drakx-backup-do-not-use-038e2b5d78e9acf85b9fcbb9691681fb7e0f1d86.tar.gz drakx-backup-do-not-use-038e2b5d78e9acf85b9fcbb9691681fb7e0f1d86.tar.bz2 drakx-backup-do-not-use-038e2b5d78e9acf85b9fcbb9691681fb7e0f1d86.tar.xz drakx-backup-do-not-use-038e2b5d78e9acf85b9fcbb9691681fb7e0f1d86.zip |
simpkify %toreplace build
-rw-r--r-- | perl-install/network/modem.pm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/perl-install/network/modem.pm b/perl-install/network/modem.pm index 54e07e98d..4c2b240e2 100644 --- a/perl-install/network/modem.pm +++ b/perl-install/network/modem.pm @@ -18,8 +18,7 @@ sub ppp_configure { any::devfssymlinkf($modem, 'modem') if $modem->{device} ne "/dev/modem"; - my %toreplace; - $toreplace{$_} = $modem->{$_} foreach qw(connection phone login passwd auth domain dns1 dns2); + my %toreplace = map { $_ => $modem->{$_} } qw(connection phone login passwd auth domain dns1 dns2); $toreplace{kpppauth} = ${{ 'Script-based' => 0, 'PAP' => 1, 'Terminal-based' => 2, }}{$modem->{auth}}; $toreplace{kpppauth} = ${{ 'Script-based' => 0, 'PAP' => 1, 'Terminal-based' => 2, 'CHAP' => 3 }}{$modem->{auth}}; $toreplace{phone} =~ s/[a-zA-Z]//g; |