summaryrefslogtreecommitdiffstats
path: root/perl-install/authentication.pm
diff options
context:
space:
mode:
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};