From: Darshaka Pathirana Date: Sat, 20 May 2017 02:02:18 +0000 (+0200) Subject: Get rid of ugly startx helper script and start X on tty7/vt7 X-Git-Tag: v0.15.7~2 X-Git-Url: http://git.grml.org/?p=grml-autoconfig.git;a=commitdiff_plain;h=e3af0148129e65305b20d9005b045e5b6f6c198d Get rid of ugly startx helper script and start X on tty7/vt7 The startx helper script was used to get around some permission problems which were caused by grml-runtty. As we switched to agetty, we also can get rid of this ugly hack. Furthermore we decided to start X on tty7/vt7 (if the bootoption startx is given) as tty6 "is especially reserved for auto-spawned gettys": This is done in order to ensure that there's always a way to get a text login, even if due to fast user switching X took possession of more than 5 VTs. See: http://0pointer.de/blog/projects/serial-console.html Relates to grml/grml#20 --- diff --git a/autoconfig.functions b/autoconfig.functions index 957fcab..fcbaead 100755 --- a/autoconfig.functions +++ b/autoconfig.functions @@ -1319,14 +1319,7 @@ if checkbootparam 'startx' && ! echo "$CMDLINE" | grep -q 'startx.*nostartx' ; t einfo "Setting up and invoking grml-x ${WINDOWMANAGER}. Just exit X windows system to get full featured consoles." config_userlocal if $SYSTEMD ; then - cat>|/etc/init.d/startx<|/etc/init.d/startx<