From 22a7b9bf2b046f7b568dbc0996e72f4aa888f373 Mon Sep 17 00:00:00 2001 From: Ciro Santilli Date: Sat, 5 May 2018 19:21:18 +0100 Subject: [PATCH] config.sh: builtin grep! --- README.adoc | 6 ++++++ rootfs_overlay/conf.sh | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README.adoc b/README.adoc index 6d72d27..83fdadd 100644 --- a/README.adoc +++ b/README.adoc @@ -2156,6 +2156,12 @@ or with our shortcut: /conf.sh .... +or to conveniently grep for a specific option: + +.... +/conf.sh CONFIG_IKCONFIG +.... + This is enabled by: .... diff --git a/rootfs_overlay/conf.sh b/rootfs_overlay/conf.sh index 4cb23a8..5f6086e 100755 --- a/rootfs_overlay/conf.sh +++ b/rootfs_overlay/conf.sh @@ -1,2 +1,2 @@ #!/bin/sh -zcat /proc/config.gz +zcat /proc/config.gz | grep "${1:-}"