]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blobdiff - src/initscripts/init.d/udev
udev: mount /dev/shm and /dev/pts if not mounted.
[people/teissler/ipfire-2.x.git] / src / initscripts / init.d / udev
index 7674ab52c314d229919db8a3220b3866a67fa2d5..b6d01009a8e5234795bf7b3abaf955bf5f88d4ed 100644 (file)
@@ -41,6 +41,16 @@ case "${1}" in
                        /etc/rc.d/init.d/halt stop
                fi
 
+               if ! grep -q '[[:space:]]/dev/shm' /proc/mounts; then
+                       mkdir -p /dev/shm
+                       mount -t tmpfs tmpfs /dev/shm
+               fi
+
+               if ! grep -q '[[:space:]]/dev/pts' /proc/mounts; then
+                       mkdir -p /dev/pts
+                       mount -t devpts devpts -o gid=5,mode=620 /dev/pts
+               fi
+
                # Udev handles uevents itself, so we don't need to have
                # the kernel call out to any binary in response to them
                echo > /proc/sys/kernel/hotplug