Warning!

Notice: the grml team is migrating from Mercurial to Git.
Please visit git.grml.org instead!

added grml-init-multitail
authorMichael Gebetsroither <michael.geb@gmx.at>
Tue Nov 13 13:21:15 2007 +0100 (12 months ago)
changeset 22515881cc55d36
manifest15881cc55d36
parent 22103dbe896dc03
child 226f779709f9806
added grml-init-multitail
usr_bin/grml-init-multitail
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/usr_bin/grml-init-multitail Tue Nov 13 13:21:15 2007 +0100
@@ -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 <mika@grml.org>,
+# (c) Michael Gebetsroither <gebi@grml.org>
+# 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 #################################################################