Commit 848b5f51 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 4d915099
...@@ -41,17 +41,16 @@ if [ $$ == 1 ]; then ...@@ -41,17 +41,16 @@ if [ $$ == 1 ]; then
mount -t tmpfs none /run/lock mount -t tmpfs none /run/lock
mount -t tmpfs none /tmp mount -t tmpfs none /tmp
# XXX source bashrc ? # run program in cwd in new terminal session attached to console
# FIXME "/dev/tty: No such device or address" # (if we don't establish a session accessing /dev/tty will give "No such device or address")
test -n "$CWD" || qdie "CWD=?" test -n "$CWD" || qdie "CWD=?"
cd "$CWD" cd "$CWD"
test $# != 0 || qdie "no program to run" test $# != 0 || qdie "no program to run"
cat /proc/cmdline #cat /proc/cmdline
env #env
set +e -x #set +e -x
"$@" # run argv[1:] passes to init setsid "$@" <>/dev/ttyS0 >&0 2>&1 # run argv[1:] passes to init
echo "exit code: $?" echo "exit code: $?"
qshutdown qshutdown
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment