X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/e158d8b6a7b3c883a8be74cb2327dda6374fc050..b0d35b29018c4254d6086316be5356d6b1c824b3:/scripts/gen_package_config.pl?ds=sidebyside diff --git a/scripts/gen_package_config.pl b/scripts/gen_package_config.pl index 9c705af56..4ce117c06 100755 --- a/scripts/gen_package_config.pl +++ b/scripts/gen_package_config.pl @@ -89,10 +89,13 @@ sub print_category($) { if ($c > 0) { $title .= ("." x $c). " ". $pkg->{title}; } + print "\tconfig DEFAULT_".$pkg->{name}."\n"; + print "\t\tbool\n\n"; print "\t"; $pkg->{menu} and print "menu"; print "config PACKAGE_".$pkg->{name}."\n"; print "\t\ttristate \"$title\"\n"; + print "\t\tdefault y if DEFAULT_".$pkg->{name}."\n"; foreach my $default (split /\s*,\s*/, $pkg->{default}) { print "\t\tdefault $default\n"; }