rc: different approach for tty detection

This commit is contained in:
Franco Fichtner 2018-05-19 16:18:59 +02:00
parent 4d3d04abd1
commit ef61ac3ed7

View File

@ -37,7 +37,7 @@ ifconfig lo0 ::1
ifconfig lo0 up
if [ -z "${TERM}" ]; then
if [ -e /dev/ttyv0 ]; then
if [ -n "$(tty | grep ttyv)" ]; then
export TERM=xterm
else
export TERM=vt100