Browse Source

[early] Changed sbin/getsh to not background itself

karasz/new-early
Alejandro Mery 17 years ago
parent
commit
cb98f6cc8d
1 changed files with 2 additions and 4 deletions
  1. +2
    -4
      target/early/initramfs/sbin_getsh.sh

+ 2
- 4
target/early/initramfs/sbin_getsh.sh

@ -17,8 +17,6 @@ if [ $# -eq 0 ]; then
echo "Usage: \${0##*/} <vc> [<command> <arguments>]"
exit 1
else
vc=$1; shift
set -e
( setsid "${@:-/bin/sh}" < /dev/$vc > /dev/$vc 2> /dev/$vc & ) &
echo $!
vc=${1:-console}; shift
exec setsid "${@:-/bin/sh}" < /dev/$vc > /dev/$vc 2> /dev/$vc
fi

Loading…
Cancel
Save