mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 10:35:53 +02:00
configroot: add missing set_defaults sub
missing set_defaults sub result in error when generate flash image during build after add wireguard UI Signed-off-by: Vincent Li <vincent.mc.li@gmail.com>
This commit is contained in:
@@ -189,6 +189,18 @@ sub setup_default_networks
|
||||
$defaultNetworks->{$name}{'NAME'} = "WGRW";
|
||||
}
|
||||
}
|
||||
|
||||
sub set_defaults($$) {
|
||||
my $hash = shift;
|
||||
my $defaults = shift;
|
||||
|
||||
foreach my $key (keys %$defaults) {
|
||||
unless (defined($hash->{$key})) {
|
||||
$hash->{$key} = $defaults->{$key};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
sub get_aliases
|
||||
{
|
||||
|
||||
|
||||
Reference in New Issue
Block a user