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

.

parent 4d915099
......@@ -41,17 +41,16 @@ if [ $$ == 1 ]; then
mount -t tmpfs none /run/lock
mount -t tmpfs none /tmp
# XXX source bashrc ?
# FIXME "/dev/tty: No such device or address"
# run program in cwd in new terminal session attached to console
# (if we don't establish a session accessing /dev/tty will give "No such device or address")
test -n "$CWD" || qdie "CWD=?"
cd "$CWD"
test $# != 0 || qdie "no program to run"
cat /proc/cmdline
env
set +e -x
"$@" # run argv[1:] passes to init
#cat /proc/cmdline
#env
#set +e -x
setsid "$@" <>/dev/ttyS0 >&0 2>&1 # run argv[1:] passes to init
echo "exit code: $?"
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