1 # handle automatic X.org/grml-x startup on Grml live system
2 if [ -r /etc/grml_cd ] ; then
3 # /var/run/grml-x/window-manager is an ugly hack to share
4 # selection of window manager via startx boot option
5 # and grml-quickconfig with this startup wrapper
6 if [ -r /var/run/grml-x/window-manager ] ; then
7 [[ -z "$DISPLAY" && -n "$XDG_VTNR" && "$XDG_VTNR" -eq 7 ]] && grml-x "$(cat /var/run/grml-x/window-manager)"
9 [[ -z "$DISPLAY" && -n "$XDG_VTNR" && "$XDG_VTNR" -eq 7 ]] && grml-x