runtest-gdbserver-read1: Fix to really run in gdbserver mode.
[nethome.git] / bin / n
diff --git a/bin/n b/bin/n
index c4c8a8e..efefd5c 100755 (executable)
--- a/bin/n
+++ b/bin/n
@@ -4,13 +4,13 @@ if which ionice &>/dev/null;then
 else
        IONICE=""
 fi
-if [ "$1" = --n-class ];then
-  CGPARAM="$2"
-  shift 2
+if [ "${1#--}" != "$1" ];then
+  CGPARAM="${1#--}"
+  shift
 else
   CGPARAM="n"
 fi
-CGPARAM="-g cpu,memory,blkio:$CGPARAM"
+CGPARAM="-g *:$CGPARAM"
 if cgexec $CGPARAM true 2>/dev/null;then
        CGEXEC="cgexec $CGPARAM"
        CGCLASSIFY="cgclassify $CGPARAM"