Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
rc.boot: Proper Bedrock Linux fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanaraps committed Mar 15, 2020
1 parent f8695f2 commit 2c89741
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions lib/init/rc.boot
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,13 @@ log "Mounting pseudo filesystems..."; {

# udev created these for us, however other device managers
# don't. This is fine even when udev is in use.
{
ln -sf /proc/self/fd /dev/fd

# Check that these don't already exist as symlinks to
# avoid issues when KISS is used with Bedrock Linux.
[ -h fd/0 ] || ln -sf fd/0 /dev/stdin
[ -h fd/1 ] || ln -sf fd/1 /dev/stdout
[ -h fd/2 ] || ln -sf fd/2 /dev/stderr
}
#
# Check that these don't already exist as symlinks to
# avoid issues when KISS is used with Bedrock Linux.
[ -h /dev/fd ] || ln -sf /proc/self/fd /dev/fd
[ -h /dev/stdin ] || ln -sf fd/0 /dev/stdin
[ -h /dev/stdout ] || ln -sf fd/1 /dev/stdout
[ -h /dev/stderr ] || ln -sf fd/2 /dev/stderr
}

log "Starting device manager..."; {
Expand Down

0 comments on commit 2c89741

Please sign in to comment.