X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=usr_bin%2Fgrml-init-multitail;fp=usr_bin%2Fgrml-init-multitail;h=20494faae9201747c4f8c33300402d67c494ba81;hb=1b8dcad8b9da618cb6c0e22a762cafb08e262640;hp=0000000000000000000000000000000000000000;hpb=608ca3eeeacd74efa85ad44f5585d1b1b60c8d85;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..20494fa --- /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 #################################################################