projects
/
grml-desktop.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
zprofile: ensure code is executed only on Grml as a live-system
[grml-desktop.git]
/
etc
/
skel
/
.zprofile
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