From: Christian Hofstaedtler Date: Mon, 22 Aug 2011 22:32:21 +0000 (+0200) Subject: Remove grml-screen X-Git-Tag: v2.0.0~2 X-Git-Url: http://git.grml.org/?p=grml-scripts-core.git;a=commitdiff_plain;h=9df9caf71f9297d8bca1336e997dcad7819af8fc Remove grml-screen grml-screen is now provided as /usr/share/grml-scripts/run-screen by grml-scripts. It was never intended to be run by users. --- diff --git a/usr_bin/grml-screen b/usr_bin/grml-screen deleted file mode 100755 index b455b62..0000000 --- a/usr_bin/grml-screen +++ /dev/null @@ -1,35 +0,0 @@ -#!/bin/dash -# Filename: grml-screen -# Purpose: wrapper for screen to start with appropriate configuration -# Authors: grml-team (grml.org), (c) Michael Prokop -# Bug-Reports: see http://grml.org/bugs/ -# License: This file is licensed under the GPL v2. -################################################################################ - -# export variable USER for use withing GNU screen: - export USER=`id -un` - -# fix tty permissions - TTY=`tty` - sudo chmod 660 $TTY - sudo chown $USER.tty $TTY - -# try to mitigate raceconditions from screen -SCREENDIR_="/var/run/screen" -if [ `id -u` = 0 ] ; then - mkdir -m 755 $SCREENDIR_ >/dev/null 2>& 1 && chgrp utmp $SCREENDIR_ -fi -mkdir -m 700 "${SCREENDIR_}/S-$USER" >/dev/null 2>&1 - -# now run screen with config - cd $HOME # important for e.g. hardcopy-feature - - if [ `id -u` = 0 ] ; then - exec screen -U -c /etc/grml/screenrc - elif [ -r "$HOME/.screenrc" ] ; then - exec screen -U -c "$HOME/.screenrc" - else - exec screen -U -c /etc/grml/screenrc_grml - fi - -## END OF FILE #################################################################