SOURCES: start_udev - do not require mktemp with optional TEMPLATE...

glen glen at pld-linux.org
Thu Oct 13 12:11:29 CEST 2005


Author: glen                         Date: Thu Oct 13 10:11:27 2005 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- do not require mktemp with optional TEMPLATE parameter

---- Files affected:
SOURCES:
   start_udev (1.15 -> 1.16) 

---- Diffs:

================================================================
Index: SOURCES/start_udev
diff -u SOURCES/start_udev:1.15 SOURCES/start_udev:1.16
--- SOURCES/start_udev:1.15	Sun Sep 11 12:16:49 2005
+++ SOURCES/start_udev	Thu Oct 13 12:11:19 2005
@@ -161,11 +161,11 @@
 # mount the tmpfs on ${udev_root%/}, if not already done
 LANG=C awk "\$2 == \"${udev_root%/}\" && \$3 == \"tmpfs\" { exit 1 }" /proc/mounts && {
 	if LANG=C fgrep -q "none ${udev_root%/}/pts " /proc/mounts; then
-		PTSDIR=$(mktemp -d)
+		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
-		SHMDIR=$(mktemp -d)
+		SHMDIR=$(mktemp -d ${TMPDIR:-/tmp}/tmpXXXXXX)
 		mount --move $udev_root/shm "$SHMDIR"
 	fi
 	mount -n -o mode=0755 -t tmpfs none "$udev_root"
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/start_udev?r1=1.15&r2=1.16&f=u




More information about the pld-cvs-commit mailing list