Merge pull request #6327 from hvdijk/master
stage-1-init: fix PID 1 shell
This commit is contained in:
commit
970d57a598
@ -36,7 +36,7 @@ EOF
|
|||||||
read reply
|
read reply
|
||||||
|
|
||||||
if [ -n "$allowShell" -a "$reply" = f ]; then
|
if [ -n "$allowShell" -a "$reply" = f ]; then
|
||||||
exec setsid @shell@ -c "@shell@ < /dev/$console >/dev/$console 2>/dev/$console"
|
exec setsid @shell@ -c "exec @shell@ < /dev/$console >/dev/$console 2>/dev/$console"
|
||||||
elif [ -n "$allowShell" -a "$reply" = i ]; then
|
elif [ -n "$allowShell" -a "$reply" = i ]; then
|
||||||
echo "Starting interactive shell..."
|
echo "Starting interactive shell..."
|
||||||
setsid @shell@ -c "@shell@ < /dev/$console >/dev/$console 2>/dev/$console" || fail
|
setsid @shell@ -c "@shell@ < /dev/$console >/dev/$console 2>/dev/$console" || fail
|
||||||
|
Loading…
x
Reference in New Issue
Block a user