      fi
  
 diff -Naurp lxc.orig/src/lxc/lxc-setcap.in lxc/src/lxc/lxc-setcap.in
---- lxc.orig/src/lxc/lxc-setcap.in	2011-12-15 11:54:49.048950070 +0100
-+++ lxc/src/lxc/lxc-setcap.in	2011-12-15 11:54:58.769002040 +0100
+--- lxc.orig/src/lxc/lxc-setcap.in	2012-01-10 14:10:12.548528394 +0100
++++ lxc/src/lxc/lxc-setcap.in	2012-01-20 23:53:18.977342737 +0100
 @@ -1,4 +1,4 @@
 -#!/bin/bash
 +#!/bin/sh

Description: Avoid using bashisms in lxc commands.

diff -Naurp lxc.orig/src/lxc/lxc-checkconfig.in lxc/src/lxc/lxc-checkconfig.in
--- lxc.orig/src/lxc/lxc-checkconfig.in	2011-12-15 11:54:49.048950070 +0100
+++ lxc/src/lxc/lxc-checkconfig.in	2011-12-15 11:54:58.765002559 +0100
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 # Allow environment variables to override grep and config
 : ${CONFIG:=/proc/config.gz}
@@ -23,7 +23,7 @@ is_enabled() {
     if [ $RES -eq 0 ]; then
 	$SETCOLOR_SUCCESS && echo -e "enabled" && $SETCOLOR_NORMAL
     else
-	if [ ! -z "$mandatory" -a "$mandatory" = yes ]; then
+	if [ ! -z "$mandatory" ] && [ "$mandatory" = yes ]; then
 	    $SETCOLOR_FAILURE && echo -e "required" && $SETCOLOR_NORMAL
 	else
 	    $SETCOLOR_WARNING && echo -e "missing" && $SETCOLOR_NORMAL
@@ -86,8 +86,8 @@ echo -n "Vlan: " && is_enabled CONFIG_VL
 KVER_MINOR=$($GREP '^# Linux' $CONFIG | \
     sed -r 's/.*2.6.([0-9]{2}).*/\1/')
 echo -n "File capabilities: " &&
-    [[ ${KVER_MINOR} < 33 ]] && is_enabled CONFIG_SECURITY_FILE_CAPABILITIES ||
-    [[ ${KVER_MINOR} > 32 ]] &&  $SETCOLOR_SUCCESS && echo -e "enabled" &&
+    [ ${KVER_MINOR} -lt 33 ] && is_enabled CONFIG_SECURITY_FILE_CAPABILITIES ||
+    [ ${KVER_MINOR} -gt 32 ] &&  $SETCOLOR_SUCCESS && echo -e "enabled" &&
     $SETCOLOR_NORMAL
 
 echo
diff -Naurp lxc.orig/src/lxc/lxc-clone.in lxc/src/lxc/lxc-clone.in
--- lxc.orig/src/lxc/lxc-clone.in	2011-12-15 11:54:49.048950070 +0100
+++ lxc/src/lxc/lxc-clone.in	2011-12-15 11:54:58.769002040 +0100
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh

 #
 # lxc: linux Container library
diff -Naurp lxc.orig/src/lxc/lxc-destroy.in lxc/src/lxc/lxc-destroy.in
--- lxc.orig/src/lxc/lxc-destroy.in	2012-01-10 14:10:12.548528394 +0100
+++ lxc/src/lxc/lxc-destroy.in	2012-01-20 23:53:18.973343197 +0100
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
