I'm trying to prevent all of the logs and messages from showing on the console screen on system startup. I'd also like to clear the console screen before login. I tried the following, but things aren't working as I expect.
Made following modifications to /etc/syslog.conf
I also created the log file:
I also created a startup script named and named it beginning with "z_" so that it would run last:
The script runs and echos "... CLEARING SCREEN ...", but the console screen doesn't clear.
Any ideas?
Made following modifications to /etc/syslog.conf
Code:
# DISABLE CONSOLE LOGGING
#*.err;kern.warning;auth.notice;mail.crit /dev/console
# uncomment this to log all writes to /dev/console to /var/log/console.log
console.info /var/log/console.log
I also created the log file:
Code:
$ sudo touch /var/log/console.log
$ ls -l /var/log/console.log
-rw-r--r-- 1 root wheel 0 Jan 15 00:53 console.log
I also created a startup script named and named it beginning with "z_" so that it would run last:
Code:
$ ls -l /usr/local/etc/rc.d/z_startup.sh
-r-xr-xr-x 1 root wheel 54 Jan 15 01:03 /usr/local/etc/rc.d/z_startup.sh
$ cat /usr/local/etc/rc.d/z_startup.sh
#!/bin/sh
echo '### CLEARING SCREEN ###'
clear
exit 0
$
The script runs and echos "... CLEARING SCREEN ...", but the console screen doesn't clear.
Any ideas?