From: Michael Prokop Date: Wed, 24 May 2017 06:49:54 +0000 (+0200) Subject: zprofile: ensure code is executed only on Grml as a live-system X-Git-Tag: v0.5.1~1 X-Git-Url: http://git.grml.org/?p=grml-desktop.git;a=commitdiff_plain;h=50fd23f9a2f60ee26cfcf5f1eb9b4f036ecc432b zprofile: ensure code is executed only on Grml as a live-system Related to grml/grml#20 --- diff --git a/etc/skel/.zprofile b/etc/skel/.zprofile index dc871b8..6c813b4 100644 --- a/etc/skel/.zprofile +++ b/etc/skel/.zprofile @@ -1 +1,4 @@ -[[ -z $DISPLAY && -n "$XDG_VTNR" && "$XDG_VTNR" -eq 7 ]] && grml-x +# handle automatic X.org/grml-x startup on Grml live system +if [ -r /etc/grml_cd ] ; then + [[ -z "$DISPLAY" && -n "$XDG_VTNR" && "$XDG_VTNR" -eq 7 ]] && grml-x +fi