packages: udev/start_udev - simplify
glen
glen at pld-linux.org
Sun Mar 18 18:28:45 CET 2012
Author: glen Date: Sun Mar 18 17:28:45 2012 GMT
Module: packages Tag: HEAD
---- Log message:
- simplify
---- Files affected:
packages/udev:
start_udev (1.45 -> 1.46)
---- Diffs:
================================================================
Index: packages/udev/start_udev
diff -u packages/udev/start_udev:1.45 packages/udev/start_udev:1.46
--- packages/udev/start_udev:1.45 Sun Mar 18 18:27:10 2012
+++ packages/udev/start_udev Sun Mar 18 18:28:39 2012
@@ -21,7 +21,7 @@
# properly during development...
# default value, if no config present.
-udev_root="/dev/"
+udev_root="/dev"
sysfs_dir="/sys"
udevd_timeout=8
@@ -68,15 +68,15 @@
show "Starting udev"
busy
-# mount the devtmpfs on ${udev_root%/}, if not already done
-awk "\$2 == \"${udev_root%/}\" && \$3 == \"devtmpfs\" { exit 1 }" /proc/mounts && {
+# mount the devtmpfs on $udev_root, if not already done
+awk "\$2 == \"$udev_root\" && \$3 == \"devtmpfs\" { exit 1 }" /proc/mounts && {
- if grep -qF "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 grep -qF "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.45&r2=1.46&f=u
More information about the pld-cvs-commit
mailing list