lxc: bump to 2.1.0
[feed/packages.git] / utils / lxc / patches / 020-lxc-checkconfig.patch
1 --- a/src/lxc/tools/lxc-checkconfig.in
2 +++ b/src/lxc/tools/lxc-checkconfig.in
3 @@ -3,6 +3,17 @@
4 # Allow environment variables to override config
5 : ${CONFIG:=/proc/config.gz}
6 : ${MODNAME:=configs}
7 +: ${ZGREP:=zgrep}
8 +: ${GUNZIP:=gunzip}
9 +
10 +if [ -z $(which $ZGREP) ] && ! [ -z $(which $GUNZIP) ] && [ -x $(which $GUNZIP) ] && [ -f $CONFIG ] && [ "$CONFIG" == "/proc/config.gz" ] ; then
11 +
12 + CONFIG_NEW="/tmp/config-$(uname -r)"
13 + $GUNZIP -c $CONFIG > $CONFIG_NEW
14 + CONFIG=$CONFIG_NEW
15 +
16 + GREP=grep
17 +fi
18
19 CAT="cat"
20