mirror of
https://github.com/openwrt/packages.git
synced 2025-10-10 16:11:25 +00:00
Fix a typo introduced in fd686a3220
which partially broke lxc-checkconfig
Build system: x86/64
Build-tested: bcm27xx/bcm2712
Run-tested: bcm27xx/bcm2712
Signed-off-by: John Audia <therealgraysky@proton.me>
27 lines
830 B
Diff
27 lines
830 B
Diff
--- a/src/lxc/cmd/lxc-checkconfig.in
|
|
+++ b/src/lxc/cmd/lxc-checkconfig.in
|
|
@@ -7,6 +7,15 @@ export LANGUAGE=en
|
|
# Allow environment variables to override config
|
|
: "${CONFIG:=/proc/config.gz}"
|
|
: "${MODNAME:=configs}"
|
|
+: ${ZGREP:=zgrep}
|
|
+: ${GUNZIP:=gunzip}
|
|
+
|
|
+if [ -z $(command -v $ZGREP) ] && ! [ -z $(command -v $GUNZIP) ] && [ -x $(command -v $GUNZIP) ] && [ -f $CONFIG ] && [ "$CONFIG" == "/proc/config.gz" ] ; then
|
|
+ CONFIG_NEW="/tmp/config-$(uname -r)"
|
|
+ $GUNZIP -c $CONFIG > $CONFIG_NEW
|
|
+ CONFIG=$CONFIG_NEW
|
|
+ GREP=grep
|
|
+fi
|
|
|
|
GREP="grep"
|
|
|
|
@@ -255,7 +264,6 @@ echo
|
|
printf "CONFIG_NETFILTER_XT_MATCH_COMMENT: " && is_enabled CONFIG_NETFILTER_XT_MATCH_COMMENT && is_probed xt_comment
|
|
echo
|
|
|
|
-echo "
|
|
printf "CONFIG_FHANDLE: " && is_enabled CONFIG_FHANDLE
|
|
echo
|
|
printf "CONFIG_EVENTFD: " && is_enabled CONFIG_EVENTFD
|