init: Always create symlinks for bash

No need to test whether bash is a symlink, bash ships on all boards
using the normal init script now.

Signed-off-by: Jonathon Hall <jonathon.hall@puri.sm>
This commit is contained in:
Jonathon Hall 2023-03-07 16:20:23 -05:00
parent 5588a47d56
commit 719dc57970
No known key found for this signature in database
GPG Key ID: 1E9C3CA91AE25114

View File

@ -31,13 +31,10 @@ if [ ! -r /dev/ptmx ]; then
fi
# Needed by bash
if ! [ -L /bin/bash ]; then
# /bin/bash is not a symbolink link (not busybox)
[ -a /dev/stdin ] || ln -s /proc/self/fd/0 /dev/stdin
[ -a /dev/stdout ] || ln -s /proc/self/fd/1 /dev/stdout
[ -a /dev/stderr ] || ln -s /proc/self/fd/2 /dev/stderr
[ -a /dev/fd ] || ln -s /proc/self/fd /dev/fd
fi
[ -a /dev/stdin ] || ln -s /proc/self/fd/0 /dev/stdin
[ -a /dev/stdout ] || ln -s /proc/self/fd/1 /dev/stdout
[ -a /dev/stderr ] || ln -s /proc/self/fd/2 /dev/stderr
[ -a /dev/fd ] || ln -s /proc/self/fd /dev/fd
# Recovery shells will erase anything from here
mkdir -p /tmp/secret