livecd: livecd - avoid matching self from listing, just in case

glen glen at pld-linux.org
Mon Jul 10 14:43:55 CEST 2006


Author: glen                         Date: Mon Jul 10 12:43:54 2006 GMT
Module: livecd                        Tag: HEAD
---- Log message:
- avoid matching self from listing, just in case

---- Files affected:
livecd:
   livecd (1.6 -> 1.7) 

---- Diffs:

================================================================
Index: livecd/livecd
diff -u livecd/livecd:1.6 livecd/livecd:1.7
--- livecd/livecd:1.6	Mon Jul 10 13:24:38 2006
+++ livecd/livecd	Mon Jul 10 14:43:49 2006
@@ -51,7 +51,7 @@
 	stop)
 	CHARS="LiveCD: "
 	if [ "`cat /proc/mounts | grep \/home\/users`" != "" ]; then
-		for I in `lsof +D /home/users | awk '!/COMMAND/ {print $2}' | sort | uniq`; do
+		for I in `lsof +D /home/users | awk '!/[C]OMMAND/ {print $2}' | sort | uniq`; do
 			kill -15 $I > /dev/null 2>&1
 			kill -9 $I > /dev/null 2>&1
 		done
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/livecd/livecd?r1=1.6&r2=1.7&f=u



More information about the pld-cvs-commit mailing list