  echo
 -
 diff -Naurp lxc.orig/src/lxc/lxc-clone.in lxc/src/lxc/lxc-clone.in
---- lxc.orig/src/lxc/lxc-clone.in	2012-03-02 13:20:15.859239022 +0100
-+++ lxc/src/lxc/lxc-clone.in	2012-03-09 12:43:15.615270353 +0100
+--- lxc.orig/src/lxc/lxc-clone.in	2012-11-12 13:28:25.720114813 +0100
++++ lxc/src/lxc/lxc-clone.in	2012-11-12 13:56:39.916515988 +0100
 @@ -1,4 +1,4 @@
 -#!/bin/bash
 +#!/bin/sh

 #
 # lxc: linux Container library
diff -Naurp lxc.orig/src/lxc/lxc-create.in lxc/src/lxc/lxc-create.in
--- lxc.orig/src/lxc/lxc-create.in	2012-03-09 12:39:58.430294287 +0100
+++ lxc/src/lxc/lxc-create.in	2012-03-09 12:41:35.350756130 +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-03-02 13:20:15.859239022 +0100
+++ lxc/src/lxc/lxc-destroy.in	2012-03-09 12:42:48.359136155 +0100
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 #
 # lxc: linux Container library
@@ -98,7 +98,7 @@ fi
 # deletion of others later.
 rootdev=`grep lxc.rootfs $lxc_path/$lxc_name/config 2>/dev/null | sed -e 's/^[^/]*/\//'`
 if [ ! -z "$rootdev" ]; then
-	if [ -b "$rootdev" -o -h "$rootdev" ]; then
+	if [ -b "$rootdev" ] || [ -h "$rootdev" ]; then
 		lvdisplay $rootdev > /dev/null 2>&1
 		if [ $? -eq 0 ]; then
 			echo "removing backing store: $rootdev"
diff -Naurp lxc.orig/src/lxc/lxc-ls.in lxc/src/lxc/lxc-ls.in
--- lxc.orig/src/lxc/lxc-ls.in	2012-03-02 13:20:15.859239022 +0100
+++ lxc/src/lxc/lxc-ls.in	2012-03-09 12:41:35.350756130 +0100
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 localstatedir=@LOCALSTATEDIR@
 lxcpath=@LXCPATH@
diff -Naurp lxc.orig/src/lxc/lxc-netstat.in lxc/src/lxc/lxc-netstat.in
--- lxc.orig/src/lxc/lxc-netstat.in	2012-03-02 13:20:15.859239022 +0100
+++ lxc/src/lxc/lxc-netstat.in	2012-03-09 12:41:35.354756455 +0100
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 # set -ex
 
 usage() {
@@ -59,7 +59,7 @@ for i in "$cgroups"; do
     cgroup_name=$(echo $i | awk ' { print $1 } ')
     cgroup_path=$(echo $i | awk ' { print $3 } ')
 
-    if [ "$cgroup_name" == "lxc" ]; then
+    if [ "$cgroup_name" = "lxc" ]; then
         break;
     fi
 
diff -Naurp lxc.orig/src/lxc/lxc-setcap.in lxc/src/lxc/lxc-setcap.in
--- lxc.orig/src/lxc/lxc-setcap.in	2012-03-02 13:20:15.863239028 +0100
+++ lxc/src/lxc/lxc-setcap.in	2012-03-09 12:41:35.354756455 +0100
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh

     else
-	if [ ! -z "$mandatory" -a "$mandatory" = yes ]; then
-	    $SETCOLOR_FAILURE && echo -e "required" && $SETCOLOR_NORMAL
-	else
-	    $SETCOLOR_WARNING && echo -e "missing" && $SETCOLOR_NORMAL
-	fi
-    fi
-}
-
-if [ ! -f $CONFIG ]; then
+	if [ ! -z "$mandatory" ] && [ "$mandatory" = yes ]; then
+	    SETCOLOR_FAILURE && echo "required" && SETCOLOR_NORMAL
+ 	else
+	    SETCOLOR_WARNING && echo "missing" && SETCOLOR_NORMAL
+ 	fi
+     fi
+ }
+ 
+if [ ! -f "$CONFIG" ]; then
     echo "Kernel configuration not found at $CONFIG; searching..."
     KVER="`uname -r`"
     HEADERS_CONFIG="/lib/modules/$KVER/build/.config"
@@ -52,13 +55,13 @@ if [ ! -f $CONFIG ]; then
 fi
 
 echo "--- Namespaces ---"
