From d73d20f31d1665274b76e120db296a161a2058eb Mon Sep 17 00:00:00 2001 From: Michael Gebetsroither Date: Tue, 13 Nov 2007 13:21:15 +0100 Subject: [PATCH] added grml-init-multitail --- usr_bin/grml-init-multitail | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 usr_bin/grml-init-multitail diff --git a/usr_bin/grml-init-multitail b/usr_bin/grml-init-multitail new file mode 100755 index 0000000..25ddd62 --- /dev/null +++ b/usr_bin/grml-init-multitail @@ -0,0 +1,20 @@ +#!/bin/dash +# Filename: grml-init-multitail +# Purpose: fix tty permissions and run multitail +# Authors: grml-team (grml.org), (c) Michael Prokop , +# (c) Michael Gebetsroither +# 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 rungetty: + TTY=`tty` + sudo chown $USER.$USER $TTY + +# now start the shell: + exec /usr/bin/multitail -o 'check_mail:0' /var/log/syslog + +## END OF FILE ################################################################# -- 2.1.4