Select Git revision
-
David Bauer authored
The image name was changes upstream for the armsr targets. Link: https://github.com/openwrt/openwrt/commit/7555fb02ecfd341376db0adfedd2fded3450d7c8 Signed-off-by:
David Bauer <mail@david-bauer.net>
David Bauer authoredThe image name was changes upstream for the armsr targets. Link: https://github.com/openwrt/openwrt/commit/7555fb02ecfd341376db0adfedd2fded3450d7c8 Signed-off-by:
David Bauer <mail@david-bauer.net>
generate.pl 402 B
use warnings;
my %config;
sub add_config {
my ($prefix, $c) = @_;
foreach my $key (keys $c) {
my $val = $c->{$key};
if (ref($val) eq 'HASH') {
add_config($key . '.', $val);
}
unless (ref($val)) {
$config{'@' . $prefix . $key . '@'} = $val;
}
}
}
add_config('', $CONFIG);
my $regex = join '|', map {quotemeta} keys %config;
for (<>) {
s/($regex)/${config{$1}}/g;
print;
}