SVN: rc-scripts/trunk/rc.d/init.d/functions
glen
glen at pld-linux.org
Mon Mar 9 19:50:19 CET 2009
Author: glen
Date: Mon Mar 9 19:50:19 2009
New Revision: 10181
Modified:
rc-scripts/trunk/rc.d/init.d/functions
Log:
- /proc/mounts isn't localized and it has fixed format (use fgrep)
Modified: rc-scripts/trunk/rc.d/init.d/functions
==============================================================================
--- rc-scripts/trunk/rc.d/init.d/functions (original)
+++ rc-scripts/trunk/rc.d/init.d/functions Mon Mar 9 19:50:19 2009
@@ -999,7 +999,7 @@
[ -n "$fstype" -a -n "$mntpoint" ] || return 1
if [ -r /proc/mounts ]; then
- LC_ALL=C grep -qE " $mntpoint +$fstype " /proc/mounts 2>/dev/null
+ fgrep -q " $mntpoint $fstype " /proc/mounts
return $?
else
if [ "$(/bin/stat -L -f -c %T $mntpoint 2>/dev/null)" = "$fstype" ]; then
More information about the pld-cvs-commit
mailing list