diff --git a/target/early/initramfs/sbin_getsh.sh b/target/early/initramfs/sbin_getsh.sh index 243057e..666dce0 100644 --- a/target/early/initramfs/sbin_getsh.sh +++ b/target/early/initramfs/sbin_getsh.sh @@ -17,8 +17,6 @@ if [ $# -eq 0 ]; then echo "Usage: \${0##*/} [ ]" 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