      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 -e "missing" && $SETCOLOR_NORMAL
++ 	else
 +	    SETCOLOR_WARNING && echo "missing" && SETCOLOR_NORMAL
- 	fi
-     fi
- }
- 
--if [ ! -f $CONFIG ]; then
++ 	fi
++     fi
++ }
++ 
 +if [ ! -f "$CONFIG" ]; then
-     echo "Kernel config $CONFIG not found, looking in other places..."
+     echo "Kernel configuration not found at $CONFIG; searching..."
      KVER="`uname -r`"
      HEADERS_CONFIG="/lib/modules/$KVER/build/.config"
-@@ -53,13 +56,13 @@ if [ ! -f $CONFIG ]; then
+@@ -52,13 +55,13 @@ if [ ! -f $CONFIG ]; then
  fi
  
  echo "--- Namespaces ---"

 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
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh

 echo
 echo "--- Control groups ---"
 
@@ -69,42 +72,34 @@ print_cgroups() {
 
 CGROUP_MNT_PATH=`print_cgroups cgroup /proc/self/mounts | head -1`
 
