aboutsummaryrefslogtreecommitdiffstats
path: root/main/busybox-initscripts/mdev.conf
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.conf
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.conf')
-rw-r--r--main/busybox-initscripts/mdev.conf5
1 files changed, 2 insertions, 3 deletions
diff --git a/main/busybox-initscripts/mdev.conf b/main/busybox-initscripts/mdev.conf
index 69016ddf4c..ff4d4bb3b7 100644
--- a/main/busybox-initscripts/mdev.conf
+++ b/main/busybox-initscripts/mdev.conf
@@ -16,9 +16,8 @@ random root:root 0666
urandom root:root 0444
hwrandom root:root 0660
-# console does already exist; therefore ownership has to be changed with command
-#console root:tty 0600 @chmod 600 $MDEV && mkdir -p vc && ln -sf ../$MDEV vc/0
-console root:tty 0600 @mkdir -pm 755 fd && cd fd && for x in 0 1 2 3 ; do ln -sf /proc/self/fd/$x $x; done
+console root:tty 0600
+
# load frambuffer console when first frambuffer is found
fb0 root:video 0660 @modprobe fbcon