aboutsummaryrefslogtreecommitdiffstats
path: root/main/busybox-initscripts/mdev-mount.initd
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-11-19 07:40:52 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-11-19 07:43:25 +0000
commit20dfee5aff22b445738a27d737b31121b709d920 (patch)
treedbb474e1bea1934c285cbcc41a71a3be634505f6 /main/busybox-initscripts/mdev-mount.initd
parentfee7a639655080bccd7eb7e990e24a790919bd3c (diff)
downloadaports-20dfee5aff22b445738a27d737b31121b709d920.tar.bz2
aports-20dfee5aff22b445738a27d737b31121b709d920.tar.xz
main/busybox-initscripts: fix /dev/fd symlink
ref #1465 I think the initramfs create /dev/fd as a dir. When mdev-mount later runs 'ln -snf /proc/self/fd /dev/fd' the 'fd' symlink ends up as /dev/fd/fd. We fix this by always remove /dev/fd before creating the symlink.
Diffstat (limited to 'main/busybox-initscripts/mdev-mount.initd')
-rw-r--r--main/busybox-initscripts/mdev-mount.initd1
1 files changed, 1 insertions, 0 deletions
diff --git a/main/busybox-initscripts/mdev-mount.initd b/main/busybox-initscripts/mdev-mount.initd
index c7aaa824c2..3cbd67006c 100644
--- a/main/busybox-initscripts/mdev-mount.initd
+++ b/main/busybox-initscripts/mdev-mount.initd
@@ -47,6 +47,7 @@ seed_dev()
[ -c /dev/kmsg ] || mknod -m 660 /dev/kmsg c 1 11
# Not provided by sysfs but needed
+ rm -rf /dev/fd
ln -snf /proc/self/fd /dev/fd
ln -snf fd/0 /dev/stdin
ln -snf fd/1 /dev/stdout