From b1359ba47c70cf7b774568dd57e16e5f8f58e988 Mon Sep 17 00:00:00 2001 From: Darshaka Pathirana Date: Fri, 5 May 2017 16:20:29 +0200 Subject: [PATCH] Fix generation of startx helper script `/etc/init.d/startx` is created dynamically on startup. The $ of ${TTY} was not escaped so that when generating the helper script the variable was evaluated which lead to an empty output. The script fixes permission problems of /dev/ttyX when grml-x is started via sudo. Usually /dev/ttyX is owned by root:tty and has 0620 permission but grml-runtty changes ownership to root:root to overcome other problems. (It is not clear if these problems are still present and if we still have to do this but for now we provide this helper script). ${WINDOWMANAGER} is evaluated on generation and can be (and usually is) empty. But when starting grml-x with the parameter "" this leads to an immediate exit of grml-x. Removed the surrounding "". Closes grml/grml#1 --- autoconfig.functions | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/autoconfig.functions b/autoconfig.functions index a942f13..a7c3151 100755 --- a/autoconfig.functions +++ b/autoconfig.functions @@ -1375,9 +1375,9 @@ if checkbootparam 'startx' && ! echo "$CMDLINE" | grep -q 'startx.*nostartx' ; t if $SYSTEMD ; then cat>|/etc/init.d/startx<