[package] lxc: add new package
git-svn-id: svn://svn.openwrt.org/openwrt/packages@36651 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
20
utils/lxc/patches/020-lxc-checkconfig.patch
Normal file
20
utils/lxc/patches/020-lxc-checkconfig.patch
Normal file
@ -0,0 +1,20 @@
|
||||
--- a/src/lxc/lxc-checkconfig.in
|
||||
+++ b/src/lxc/lxc-checkconfig.in
|
||||
@@ -3,6 +3,17 @@
|
||||
# Allow environment variables to override grep and config
|
||||
: ${CONFIG:=/proc/config.gz}
|
||||
: ${GREP:=zgrep}
|
||||
+: ${ZGREP:=zgrep}
|
||||
+: ${GUNZIP:=gunzip}
|
||||
+
|
||||
+if [ -z $(which $ZGREP) ] && ! [ -z $(which $GUNZIP) ] && [ -x $(which $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
|
||||
|
||||
SETCOLOR_SUCCESS="printf \\033[1;32m"
|
||||
SETCOLOR_FAILURE="printf \\033[1;31m"
|
Reference in New Issue
Block a user