packages: udev/start_udev - grep/awk for fixed strings always the same (no ...
glen
glen at pld-linux.org
Sun Mar 18 18:27:15 CET 2012
Author: glen Date: Sun Mar 18 17:27:15 2012 GMT
Module: packages Tag: HEAD
---- Log message:
- grep/awk for fixed strings always the same (no C locale needed); do not use deprecated fgrep
---- Files affected:
packages/udev:
start_udev (1.44 -> 1.45)
---- Diffs:
================================================================
Index: packages/udev/start_udev
diff -u packages/udev/start_udev:1.44 packages/udev/start_udev:1.45
--- packages/udev/start_udev:1.44 Sun Mar 18 18:22:41 2012
+++ packages/udev/start_udev Sun Mar 18 18:27:10 2012
@@ -69,14 +69,14 @@
busy
# mount the devtmpfs on ${udev_root%/}, if not already done
-LANG=C awk "\$2 == \"${udev_root%/}\" && \$3 == \"devtmpfs\" { exit 1 }" /proc/mounts && {
+awk "\$2 == \"${udev_root%/}\" && \$3 == \"devtmpfs\" { exit 1 }" /proc/mounts && {
- if LANG=C fgrep -q "none ${udev_root%/}/pts " /proc/mounts; then
+ if grep -qF "none ${udev_root%/}/pts " /proc/mounts; then
PTSDIR=$(mktemp -d ${TMPDIR:-/tmp}/tmpXXXXXX)
mount --move $udev_root/pts "$PTSDIR"
fi
- if LANG=C fgrep -q "none ${udev_root%/}/shm " /proc/mounts; then
+ if grep -qF "none ${udev_root%/}/shm " /proc/mounts; then
SHMDIR=$(mktemp -d ${TMPDIR:-/tmp}/tmpXXXXXX)
mount --move $udev_root/shm "$SHMDIR"
fi
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/udev/start_udev?r1=1.44&r2=1.45&f=u
More information about the pld-cvs-commit
mailing list