Otherwise several virtual consoles may notice the existence of
/etc/startx, and spawn simultaneous X servers. This way we only spawn
a single X server, regardless of timing.
A better solution here is probably to add a "start" or "x-server"
service to /etc/init.d/, but that's more work than I'm up to at the
moment.
then
if [ -x /usr/bin/X ]
then
- if [ -e /etc/startx ]
+ if [ -e /etc/startx ] && [ "$(tty)" == /dev/tty1 ]
then
rm -f /etc/startx
##STARTX