From 04fbcf5b01757ed03a2f3f1e80197da1ee46a6b9 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 30 May 2006 20:22:43 +0000 Subject: [PATCH] allow more complex defaults in menuconfig SVN-Revision: 3848 --- openwrt/scripts/gen_menuconfig.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/openwrt/scripts/gen_menuconfig.pl b/openwrt/scripts/gen_menuconfig.pl index a7f939ff52..c40e1caedc 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/^([@\+])//; -- 2.30.2