diff options
| author | Craig Jennings <c@cjennings.net> | 2025-05-08 08:18:59 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2025-05-08 08:18:59 -0500 |
| commit | 51571ab3d8b100e9b72d39441706bd2d8c3be56f (patch) | |
| tree | 2f4d30bbfc84af644ee24b0dcb6f14f0fbccee05 /root_scripts | |
| parent | 3896f8e936b2d472a19028788321b46f9dc7a65f (diff) | |
updating boot_config to print to log file rather than console
Diffstat (limited to 'root_scripts')
| -rwxr-xr-x | root_scripts/boot_config.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/root_scripts/boot_config.sh b/root_scripts/boot_config.sh index 4a59a5c..987ca22 100755 --- a/root_scripts/boot_config.sh +++ b/root_scripts/boot_config.sh @@ -13,3 +13,10 @@ sysrc -f /boot/loader.conf autoboot_delay=2 # don't print start messages sysrc rc_startmsgs=NO + +# create console.log with the proper permissions +touch /var/log/console.log +chmod 600 /var/log/console.log + +# move from printing errors to the console to printing them to the above console.log file +sed -i '' 's#^\(\*\.\?err;kern\.warning;auth\.notice;mail\.crit[[:space:]]*\)/dev/console#\1/var/log/console.log#' /etc/syslog.conf |
