diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2004-11-30 13:15:36 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2004-11-30 13:15:36 +0000 |
commit | 74911cff02df2a9ec14cb3f1133983c451b8f218 (patch) | |
tree | efda3570ab0b35c8f15e0c90af4b4669f9c49c92 /perl-install | |
parent | 6093a579c0d56af8d701da3a7e5c1b3d5997b970 (diff) | |
download | drakx-backup-do-not-use-74911cff02df2a9ec14cb3f1133983c451b8f218.tar drakx-backup-do-not-use-74911cff02df2a9ec14cb3f1133983c451b8f218.tar.gz drakx-backup-do-not-use-74911cff02df2a9ec14cb3f1133983c451b8f218.tar.bz2 drakx-backup-do-not-use-74911cff02df2a9ec14cb3f1133983c451b8f218.tar.xz drakx-backup-do-not-use-74911cff02df2a9ec14cb3f1133983c451b8f218.zip |
make $when_network_is_up optional
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/authentication.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/perl-install/authentication.pm b/perl-install/authentication.pm index 7ff1b6a1c..f0bc7d517 100644 --- a/perl-install/authentication.pm +++ b/perl-install/authentication.pm @@ -182,7 +182,9 @@ sub get() { } sub set { - my ($in, $netc, $authentication, $when_network_is_up) = @_; + my ($in, $netc, $authentication, $o_when_network_is_up) = @_; + + my $when_network_is_up = $o_when_network_is_up || sub { my ($f) = @_; $f->() }; any::enableShadow() if $authentication->{shadow}; |