aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorNicolas Thill <nico@openwrt.org>2008-08-22 04:18:35 +0000
committerNicolas Thill <nico@openwrt.org>2008-08-22 04:18:35 +0000
commit25539fe08768712e47097d4aea0e7ced2e9563f0 (patch)
tree65680d90e4aa43c2c6def47aec45d16b35fbeee0 /scripts
parent088779813dd731fafb11858bc2330c47a22829b1 (diff)
downloadmaster-187ad058-25539fe08768712e47097d4aea0e7ced2e9563f0.tar.gz
master-187ad058-25539fe08768712e47097d4aea0e7ced2e9563f0.tar.bz2
master-187ad058-25539fe08768712e47097d4aea0e7ced2e9563f0.zip
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 d920f59fca..ce80924978 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};