diff options
author | Felix Fietkau <nbd@openwrt.org> | 2006-05-30 20:22:43 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2006-05-30 20:22:43 +0000 |
commit | 04fbcf5b01757ed03a2f3f1e80197da1ee46a6b9 (patch) | |
tree | 64b95fb31690c4c571d923f1d26709c49dc5f249 /openwrt/scripts | |
parent | c34681eec37096e90585a0fcd68c3279d71e1736 (diff) | |
download | mtk-20170518-04fbcf5b01757ed03a2f3f1e80197da1ee46a6b9.zip mtk-20170518-04fbcf5b01757ed03a2f3f1e80197da1ee46a6b9.tar.gz mtk-20170518-04fbcf5b01757ed03a2f3f1e80197da1ee46a6b9.tar.bz2 |
allow more complex defaults in menuconfig
SVN-Revision: 3848
Diffstat (limited to 'openwrt/scripts')
-rwxr-xr-x | openwrt/scripts/gen_menuconfig.pl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/openwrt/scripts/gen_menuconfig.pl b/openwrt/scripts/gen_menuconfig.pl index a7f939f..c40e1ca 100755 --- a/openwrt/scripts/gen_menuconfig.pl +++ b/openwrt/scripts/gen_menuconfig.pl @@ -24,7 +24,9 @@ sub print_category($) { $pkg->{menu} and print "menu"; print "config PACKAGE_".$pkg->{name}."\n"; print "\t\ttristate \"$title\"\n"; - print "\t\tdefault ".$pkg->{default}."\n"; + foreach my $default (split /\s*,\s*/, $pkg->{default}) { + print "\t\tdefault $default\n"; + } foreach my $depend (@{$pkg->{depends}}) { my $m = "depends"; $depend =~ s/^([@\+])//; |