Skip to content
Snippets Groups Projects
Commit a62b9b5b authored by Jeffrey Tolar's avatar Jeffrey Tolar
Browse files

Only start X if it's installed

parent dc062e73
Branches master
No related tags found
No related merge requests found
...@@ -171,7 +171,7 @@ gettyEOF ...@@ -171,7 +171,7 @@ gettyEOF
# autostart X (xfce) on tty1 # autostart X (xfce) on tty1
echo '[[ -z \$DISPLAY && \$XDG_VTNR -eq 1 ]] && exec startx' >> /home/$DEFAULT_USER/.bashrc echo '[[ -z \$DISPLAY && \$XDG_VTNR -eq 1 && -x /usr/bin/startx ]] && exec startx' >> /home/$DEFAULT_USER/.bashrc
chown $DEFAULT_USER:$DEFAULT_USER /home/$DEFAULT_USER/.bashrc chown $DEFAULT_USER:$DEFAULT_USER /home/$DEFAULT_USER/.bashrc
cat > /home/$DEFAULT_USER/.xinitrc <<"xinitrcEOF" cat > /home/$DEFAULT_USER/.xinitrc <<"xinitrcEOF"
#!/bin/sh #!/bin/sh
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment