diff options
-rwxr-xr-x | rc.boot | 7 | ||||
-rw-r--r-- | rc.lib | 5 |
2 files changed, 12 insertions, 0 deletions
@@ -22,6 +22,13 @@ out "Mounting pseudo filesystems..."; { mnt mode=0620,gid=5,nosuid,noexec devpts devpts /dev/pts mnt mode=1777,nosuid,nodev tmpfs shm /dev/shm + + { + link /proc/self/fs /dev/fd + link fd/0 /dev/stdin + link fd/1 /dev/stdout + link fd/2 /dev/stderr + } 2>/dev/null } out "Parsing kernel commandline..."; { @@ -75,6 +75,11 @@ device_helper() { esac } +link() { + ln -sf "$1" "$2" + printf '%s ==> %s\n' "$2" "$1" +} + mounted() { [ -e "$1" ] && [ -f /proc/mounts ] && |