--- udevd.init 2005-08-31 12:35:40 +0400 +++ udevd.init.new 2005-09-27 16:52:48 +0400 @@ -47,7 +47,7 @@ get_pts_attributes() { local rc line opts - line=`grep -F " $udev_root/pts " /etc/mtab 2>/dev/null | head -1` + line=`grep "[[:space:]]$udev_root/pts[[:space:]]" /proc/mounts 2>/dev/null | head -1` test -n "$line" || return 1 set -- $line '' opts=$4 @@ -63,7 +63,7 @@ rc=$? RETVAL=0 if test $rc = 0; then - if grep -qF " $udev_root/pts " /proc/mounts; then + if grep -q "[[:space:]]$udev_root/pts[[:space:]]" /proc/mounts; then mountcmd="mount --move pts $udev_root/pts" else mountcmd="mount -t devpts devpts $udev_root/pts -o $opts" @@ -78,7 +78,7 @@ { test -f /proc/mounts || return 0 local mountcmd - if grep -qF " $udev_root/shm " /proc/mounts; then + if grep -q "[[:space:]]$udev_root/shm[[:space:]]" /proc/mounts; then mountcmd="mount --move shm $udev_root/shm" else mountcmd="mount -t tmpfs shmfs $udev_root/shm" @@ -127,7 +127,7 @@ cd "$udev_root" RETVAL=$? [ $RETVAL -ne 0 ] && return $RETVAL - if ! grep -qF "udev $udev_root tmpfs" /proc/mounts; then + if ! grep -q "udev[[:space:]]$udev_root[[:space:]]tmpfs" /proc/mounts; then mounted=0 mount -t tmpfs udev $udev_root ACTION=add DEVPATH=/class/mem/null $bin mem/null;# && \