From 51571ab3d8b100e9b72d39441706bd2d8c3be56f Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Thu, 8 May 2025 08:18:59 -0500 Subject: updating boot_config to print to log file rather than console --- root_scripts/boot_config.sh | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- cgit v1.2.3