summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbuild16
1 files changed, 15 insertions, 1 deletions
diff --git a/build b/build
index e1b11ad..7e95002 100755
--- a/build
+++ b/build
@@ -6,7 +6,21 @@ config_enabled = \
config_enabled() \
{ \
[ "x$${1}" = 'x-' ] && return 0; \
- grep "^CONFIG_$${1}=y$$" <src/.config >/dev/null 2>&1; \
+ enabled=false; \
+ IFS='& '; \
+ for cfg in $$(printf '%s' "$${1}"); do \
+ unset IFS; \
+ [ x"$${cfg}" = x'' ] && continue; \
+ if [ x"$${cfg#!}" = x"$${cfg}" ]; then \
+ grep -q "^CONFIG_$${cfg}=y$$" <src/.config \
+ && enabled=true; \
+ else \
+ grep -q "^CONFIG_$${cfg#!}=y$$" <src/.config \
+ && enabled=false; \
+ fi; \
+ done; \
+ unset IFS; \
+ $${enabled}; \
}
install_init_script = \
install_init_script() \