aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init.d/devfs.in9
1 files changed, 8 insertions, 1 deletions
diff --git a/init.d/devfs.in b/init.d/devfs.in
index bcdbdcd4..5af68f91 100644
--- a/init.d/devfs.in
+++ b/init.d/devfs.in
@@ -69,7 +69,14 @@ seed_dev()
# so udev can add its start-message to dmesg
[ -c /dev/kmsg ] || mknod -m 660 /dev/kmsg c 1 11
- # Mount required stuff as user may not have then in /etc/fstab
+ # extra symbolic links not provided by default
+ [ -e /dev/fd ] || ln -snf /proc/self/fd /dev/fd
+ [ -e /dev/stdin ] || ln -snf /proc/self/fd/0 /dev/stdin
+ [ -e /dev/stdout ] || ln -snf /proc/self/fd/1 /dev/stdout
+ [ -e /dev/stderr ] || ln -snf /proc/self/fd/2 /dev/stderr
+ [ -e /proc/kcore ] && ln -snf /proc/kcore /dev/core
+
+ # Mount required directories as user may not have them in /etc/fstab
for x in \
"mqueue /dev/mqueue 1777 ,nodev mqueue" \
"devpts /dev/pts 0755 ,gid=5,mode=0620 devpts" \