Since installing 8.2 beta 2 (I never installed beta 1), I have been
annoyed at having to rewrite my /etc/syslog.conf file daily, so I hacked
this patch together.
It enables a standard rule to be defined for the tty12 syslog.
I have tested it only against msec-0.18-3mdk, but I can't find anything
in the changelogs to indicate that it will break in later versions...
P.S., this is the first patch I've submitted anywhere... don't be too
hard on me if it sucks ass...
--
Levi Ramsey
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Boy, that crayon sure did hurt!
Linux 2.4.17-16mdk
3:01pm up 1 day, 12:58, 9 users, load average: 1.28, 1.52, 0.97
--- libmsec.py Thu Feb 14 15:21:35 2002
+++ libmsec.py Thu Feb 14 15:33:42 2002
@@ -71,6 +71,14 @@
SU = '/etc/pam.d/su'
SYSCTLCONF = '/etc/sysctl.conf'
SYSLOGCONF = '/etc/syslog.conf'
+#Added by Levi Ramsey on 14 Feb 2002
+#Since the earlier version of this script took out my exclusion of mail.*
+# messages from tty12 (I log them to tty10 instead...), here is a variable
+# that can be set to whatever rule you want for tty12 syslog...
+SYSLOGTTY12RULE = '*.*;mail.none /dev/tty12'
+#Default SYSLOGTTY12RULE
+#SYSLOGTTY12RULE = '*.* /dev/tty12'
+#End added by Levi Ramsey
XDM = '/etc/pam.d/xdm'
XSERVERS = '/etc/X11/xdm/Xservers'
@@ -357,7 +365,8 @@
if arg:
_interactive and log(_('Enabling log on console 12'))
- syslogconf.exists() and
syslogconf.replace_line_matching('\s*[^#]+/dev/tty12', '*.* /dev/tty12', 1)
+ # Next line modified by Levi Ramsey 14 Feb 2002
+ syslogconf.exists() and
+syslogconf.replace_line_matching('\s*[^#]+/dev/tty12', SYSLOGTTY12RULE, 1)
else:
_interactive and log(_('Disabling log on console 12'))
syslogconf.exists() and syslogconf.remove_line_matching('\*\.\*\s*/dev/tty12')