SVN: rc-scripts/trunk/rc.d/init.d/cryptsetup

glen glen at pld-linux.org
Sun Jan 25 15:58:14 CET 2009


Author: glen
Date: Sun Jan 25 15:58:13 2009
New Revision: 10096

Modified:
   rc-scripts/trunk/rc.d/init.d/cryptsetup
Log:
- LC_ALL=C for greps

Modified: rc-scripts/trunk/rc.d/init.d/cryptsetup
==============================================================================
--- rc-scripts/trunk/rc.d/init.d/cryptsetup	(original)
+++ rc-scripts/trunk/rc.d/init.d/cryptsetup	Sun Jan 25 15:58:13 2009
@@ -141,7 +141,7 @@
     while read dst src key; do
 	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
         if [ -b "/dev/mapper/$dst" ]; then
-            if /sbin/dmsetup info "$dst" | grep -q '^Open count: *0$'; then
+            if LC_ALL=C /sbin/dmsetup info "$dst" | grep -q '^Open count: *0$'; then
                 /sbin/cryptsetup remove "$dst"
             else
                 fnval=1


More information about the pld-cvs-commit mailing list