projects
/
grml-desktop.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
01642da
)
zprofile: ensure code is executed only on Grml as a live-system
author
Michael Prokop
<mika@grml.org>
Wed, 24 May 2017 06:49:54 +0000
(08:49 +0200)
committer
Michael Prokop
<mika@grml.org>
Wed, 24 May 2017 07:03:34 +0000
(09:03 +0200)
Related to grml/grml#20
etc/skel/.zprofile
patch
|
blob
|
history
diff --git
a/etc/skel/.zprofile
b/etc/skel/.zprofile
index
dc871b8
..
6c813b4
100644
(file)
--- 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