3 # Purpose: wrapper for screen to start with appropriate configuration
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 ################################################################################
9 # try to mitigate raceconditions from screen
10 SCREENDIR_="/var/run/screen"
11 mkdir -m 700 "${SCREENDIR_}/S-$USER" >/dev/null 2>&1
13 # now run screen with config
15 if [ "$(id -u)" = 0 ] ; then
16 exec screen -U -c /etc/grml/screenrc
17 elif [ -r "$HOME/.screenrc" ] ; then
18 exec screen -U -c "$HOME/.screenrc"
20 exec screen -U -c /etc/grml/screenrc_generic
23 ## END OF FILE #################################################################