grml-screen/grml-init-screen: no longer use vt-is-UTF8 but instead default to UTF...
[grml-scripts-core.git] / usr_bin / grml-init-screen
1 #!/bin/dash
2 # Filename:      grml-init-screen
3 # Purpose:       fix tty permissions and run screen and zsh afterwards
4 # Authors:       grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
5 # Bug-Reports:   see http://grml.org/bugs/
6 # License:       This file is licensed under the GPL v2.
7 ################################################################################
8
9 # export variable USER for use withing GNU screen:
10   export USER=`id -un`
11
12 # fix rungetty:
13   TTY=`tty`
14   sudo chmod 660       $TTY
15   sudo chown $USER.tty $TTY
16
17 # now start screen:
18   cd $HOME
19   # do we have a utf8 enabled terminal?
20   /usr/bin/screen -U -c /etc/grml/screenrc ; exec /bin/zsh
21
22 ## END OF FILE #################################################################