From: Dhaval Giani Date: Tue, 16 Dec 2008 17:29:38 +0000 (+0000) Subject: libcgroup: Add default group to cgconfig X-Git-Tag: v0.34~200 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=db31da44a34b96e4c242a737a7cb1bdea2c3ce1c;p=thirdparty%2Flibcgroup.git libcgroup: Add default group to cgconfig From: Balbir Singh As discussed in the previous thread http://article.gmane.org/gmane.comp.lib.libcg.devel/139, we don't have the concept of default groups and tasks should be able to return back to their default group when done. Here is a fix to the cgconfig script to fix the issue. Please review, comment on it. Signed-off-by: Balbir Singh Signed-off-by: Dhaval Giani git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@238 4f4bb910-9a46-0410-90c8-c897d4f1cd53 --- diff --git a/scripts/init.d/cgconfig b/scripts/init.d/cgconfig index 58dee656..507320f5 100644 --- a/scripts/init.d/cgconfig +++ b/scripts/init.d/cgconfig @@ -147,7 +147,7 @@ move_all_to_init_class() { exit 1 fi - for i in `find . -type d` + for i in `find . -depth -type d` do case $i in '.')