summaryrefslogtreecommitdiffstats
path: root/perl-install/authentication.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-11-30 13:15:36 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-11-30 13:15:36 +0000
commit74911cff02df2a9ec14cb3f1133983c451b8f218 (patch)
treeefda3570ab0b35c8f15e0c90af4b4669f9c49c92 /perl-install/authentication.pm
parent6093a579c0d56af8d701da3a7e5c1b3d5997b970 (diff)
downloaddrakx-74911cff02df2a9ec14cb3f1133983c451b8f218.tar
drakx-74911cff02df2a9ec14cb3f1133983c451b8f218.tar.gz
drakx-74911cff02df2a9ec14cb3f1133983c451b8f218.tar.bz2
drakx-74911cff02df2a9ec14cb3f1133983c451b8f218.tar.xz
drakx-74911cff02df2a9ec14cb3f1133983c451b8f218.zip
make $when_network_is_up optional
Diffstat (limited to 'perl-install/authentication.pm')
-rw-r--r--perl-install/authentication.pm4
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};