Fix generation of startx helper script
authorDarshaka Pathirana <dpat@syn-net.org>
Fri, 5 May 2017 14:20:29 +0000 (16:20 +0200)
committerDarshaka Pathirana <dpat@syn-net.org>
Fri, 5 May 2017 14:42:01 +0000 (16:42 +0200)
commitb1359ba47c70cf7b774568dd57e16e5f8f58e988
treecdc22c5145b1736e93f239bbf5cdfe268cdf36b2
parent62128d707358500929a3bbb438e41a7ce1bd24bd
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