summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authornico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>2008-08-22 04:18:35 +0000
committernico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>2008-08-22 04:18:35 +0000
commit72a7d4c4dd0a37660011d499166d138b661aaaa0 (patch)
tree65680d90e4aa43c2c6def47aec45d16b35fbeee0 /scripts
parent06d70073dddd75a9c4aa8851b87a64ca87376150 (diff)
don't display the "Image configuration" menu entry when there's nothing to pre-configure (when using the SDK for example)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12366 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/metadata.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/metadata.pl b/scripts/metadata.pl
index d920f59fc..ce8092497 100755
--- a/scripts/metadata.pl
+++ b/scripts/metadata.pl
@@ -472,7 +472,7 @@ sub print_package_config_category($) {
sub gen_package_config() {
parse_package_metadata($ARGV[0]) or exit 1;
- print "menuconfig UCI_PRECONFIG\n\tbool \"Image configuration\"\n";
+ print "menuconfig UCI_PRECONFIG\n\tbool \"Image configuration\"\n" if %preconfig;
foreach my $preconfig (keys %preconfig) {
foreach my $cfg (keys %{$preconfig{$preconfig}}) {
my $conf = $preconfig{$preconfig}->{$cfg}->{id};