X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=usr_bin%2Fgrml-init-multitail;fp=usr_bin%2Fgrml-init-multitail;h=25ddd62645f855649639fc1d845a4a840f4d23cf;hb=d73d20f31d1665274b76e120db296a161a2058eb;hp=0000000000000000000000000000000000000000;hpb=5577c0a475e68830c1cdccf5abbcb5b45286763a;p=grml-scripts-core.git 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 #################################################################