From 74911cff02df2a9ec14cb3f1133983c451b8f218 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 30 Nov 2004 13:15:36 +0000 Subject: make $when_network_is_up optional --- perl-install/authentication.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'perl-install/authentication.pm') 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}; -- cgit v1.2.1