From: Arne Fitzenreiter Date: Sun, 2 Feb 2014 23:27:17 +0000 (+0100) Subject: udev: mount /dev/shm and /dev/pts if not mounted. X-Git-Tag: v2.15-beta2~48^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a6acaa34cc9890f1abe3610135e403bff46096a1;p=ipfire-2.x.git udev: mount /dev/shm and /dev/pts if not mounted. --- diff --git a/src/initscripts/init.d/udev b/src/initscripts/init.d/udev index 7674ab52c3..b6d01009a8 100644 --- a/src/initscripts/init.d/udev +++ b/src/initscripts/init.d/udev @@ -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