Start grml-x via .zprofile
authorDarshaka Pathirana <dpat@syn-net.org>
Sat, 20 May 2017 02:11:18 +0000 (04:11 +0200)
committerMichael Prokop <mika@grml.org>
Wed, 24 May 2017 06:43:40 +0000 (08:43 +0200)
To get rid of our ugly hacks to start X via the bootoption "startx", we
decided to run grml-x on tty7/vt7 which is defined in the
.zprofile-file.

When the bootoption "startx" is given, we switch to tty7 (via
grml-autoconfig) where agetty automatically starts a grml-user
login-(z)-shell and grml-x is started.

Closes grml/grml#20

etc/skel/.zprofile [new file with mode: 0644]

diff --git a/etc/skel/.zprofile b/etc/skel/.zprofile
new file mode 100644 (file)
index 0000000..dc871b8
--- /dev/null
@@ -0,0 +1 @@
+[[ -z $DISPLAY && -n "$XDG_VTNR" && "$XDG_VTNR" -eq 7 ]] && grml-x