blob: 987ca22ada6db7e9ff71b354f79440ec1c532d39 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/bin/sh
# Craig Jennings <c@cjennings.net>
# speeds and tidies the boot sequence
# disable devil icon in boot menu
sysrc -f /boot/loader.conf loader_logo="none"
# hide kernel diagnostics
sysrc -f /boot/loader.conf boot_mute="YES"
# reduce default wait time before boot
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
|