core: 添加输出到 ttyAMA0
This commit is contained in:
parent
5fae23798e
commit
1c1160959b
12
trans.sh
12
trans.sh
@ -121,13 +121,13 @@ setup_tty_and_log() {
|
|||||||
<pre>
|
<pre>
|
||||||
EOF
|
EOF
|
||||||
# 显示输出到前台
|
# 显示输出到前台
|
||||||
# 似乎script更优雅,但 alpine 不带 script 命令
|
|
||||||
# script -f /dev/tty0
|
# script -f /dev/tty0
|
||||||
if [ -e /dev/ttyS0 ]; then
|
for t in /dev/tty0 /dev/ttyS0 /dev/ttyAMA0; do
|
||||||
exec > >(tee -a /dev/tty0 /dev/ttyS0 /reinstall.html) 2>&1
|
if [ -e $t ] && echo >$t 2>/dev/null; then
|
||||||
else
|
ttys="$ttys $t"
|
||||||
exec > >(tee -a /dev/tty0 /reinstall.html) 2>&1
|
fi
|
||||||
fi
|
done
|
||||||
|
exec > >(tee -a $ttys /reinstall.html) 2>&1
|
||||||
}
|
}
|
||||||
|
|
||||||
extract_env_from_cmdline() {
|
extract_env_from_cmdline() {
|
||||||
|
Loading…
Reference in New Issue
Block a user