From: Hong YANG Date: Thu, 4 Dec 2025 03:03:04 +0000 (+0800) Subject: checkonfig: Fixed compatible with toybox/gunzip X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F4618%2Fhead;p=thirdparty%2Flxc.git checkonfig: Fixed compatible with toybox/gunzip gunzip in Android/toybox has no -q option. Signed-off-by: Hong YANG --- diff --git a/src/lxc/cmd/lxc-checkconfig.in b/src/lxc/cmd/lxc-checkconfig.in index aecb296e3..3d0190551 100755 --- a/src/lxc/cmd/lxc-checkconfig.in +++ b/src/lxc/cmd/lxc-checkconfig.in @@ -103,7 +103,7 @@ if [ ! -f "${CONFIG}" ]; then fi fi -if gunzip -tq < "$CONFIG" 2>/dev/null; then +if gunzip -t < "$CONFIG" >/dev/null 2>&1; then GREP="zgrep" fi