Run our TTYs with our own tty runner
[grml-scripts.git] / usr_share / run-multitail
similarity index 62%
rename from usr_bin/grml-init-multitail
rename to usr_share/run-multitail
index 20494fa..1aa2abc 100755 (executable)
@@ -1,20 +1,12 @@
 #!/bin/dash
 # Filename:      grml-init-multitail
-# Purpose:       fix tty permissions and run multitail
+# Purpose:       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
+exec /usr/bin/multitail -o 'check_mail:0' /var/log/syslog
 
 ## END OF FILE #################################################################