Modified rc.d/startx

This commit is contained in:
Xavier Logerais 2018-03-01 12:07:53 +01:00
parent 0e25c8d1cc
commit 439073ef0f

View File

@ -3,6 +3,7 @@
if [[ -z "$DISPLAY" && $(id -u) -ge 1000 ]] ; then if [[ -z "$DISPLAY" && $(id -u) -ge 1000 ]] ; then
TTY=$(tty) TTY=$(tty)
if [ "$TTY" == "not a tty" ]; then return; fi
if [ "${TTY/tty}" != "$TTY" -a $(basename ${TTY/tty}) -le 3 ] if [ "${TTY/tty}" != "$TTY" -a $(basename ${TTY/tty}) -le 3 ]
then then