  #
  # lxc: linux Container library
 diff -Naurp lxc.orig/src/lxc/lxc-setuid.in lxc/src/lxc/lxc-setuid.in
---- lxc.orig/src/lxc/lxc-setuid.in	2012-01-10 14:10:12.548528394 +0100
-+++ lxc/src/lxc/lxc-setuid.in	2012-01-20 23:53:18.977342737 +0100
+--- lxc.orig/src/lxc/lxc-setuid.in	2012-03-02 13:20:15.863239028 +0100
++++ lxc/src/lxc/lxc-setuid.in	2012-03-09 12:41:35.354756455 +0100
 @@ -1,4 +1,4 @@
 -#!/bin/bash
 +#!/bin/sh

-    $SETCOLOR_SUCCESS && echo -e "enabled" && $SETCOLOR_NORMAL
+    SETCOLOR_SUCCESS && echo "enabled" && SETCOLOR_NORMAL
 else
-    echo -n "Cgroup namespace: " && is_enabled CONFIG_CGROUP_NS yes
+    is_enabled "Cgroup namespace: " CONFIG_CGROUP_NS yes
 fi
-echo -n "Cgroup device: " && is_enabled CONFIG_CGROUP_DEVICE
-echo -n "Cgroup sched: " && is_enabled CONFIG_CGROUP_SCHED

+SETCOLOR_WARNING () { printf '\033[1;33m'; }
+SETCOLOR_NORMAL  () { printf '\033[0;39m'; }
 
 is_set() {
-    $GREP -q "$1=[y|m]" $CONFIG
+    $GREP -q "$1=[y|m]" "$CONFIG"
     return $?
 }
 
 is_enabled() {
-    mandatory=$2
+    prefix=$1
+    option=$2
+    mandatory=$3
