Run zsh when starting screen
authorDarshaka Pathirana <dpat@syn-net.org>
Sun, 21 May 2017 17:56:58 +0000 (19:56 +0200)
committerMichael Prokop <mika@grml.org>
Wed, 24 May 2017 06:35:53 +0000 (08:35 +0200)
commit68719720b5707d8f8e6e0b4b3569074ede06e285
treed996e803ebaaec050e1497917d97741dfdaec826
parent48143b65fbe57e2591a1c72e21656f525f4aa79c
Run zsh when starting screen

When starting GNU/screen via systemd the SHELL varible is empty whereas
SHELL=/bin/zsh when starting screen via grml-runtty.

If we can assume that zsh is installed on Grml then this solution is ok.
If not, we should address that in the run-screen script with something like:

  SHELL=/bin/sh
  [ -x /bin/zsh ] && SHELL=/bin/zsh

  # now run screen with config

    if [ `id -u` = 0 ] ; then
      exec screen -U -c /etc/grml/screenrc -s $SHELL
  [snip]

(partly) fixes grml/grml#14
etc/grml/fai/config/files/etc/systemd/system/getty@tty2.service.d/override.conf/GRMLBASE
etc/grml/fai/config/files/etc/systemd/system/getty@tty3.service.d/override.conf/GRMLBASE
etc/grml/fai/config/files/etc/systemd/system/getty@tty4.service.d/override.conf/GRMLBASE