mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-18 20:47:55 +00:00
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:
parent
5588a47d56
commit
719dc57970
@ -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
|
||||
|
||||
# Recovery shells will erase anything from here
|
||||
mkdir -p /tmp/secret
|
||||
|
Loading…
Reference in New Issue
Block a user