Last active
April 12, 2022 01:39
-
-
Save indgy/185a8ec55bf9043ef885ae424a6f967a to your computer and use it in GitHub Desktop.
FreeBSD Quiet Boot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Speed up boot slightly | |
sysrc background_dhclient=YES | |
sysrc -f /boot/loader.conf autoboot_delay=3 | |
# Quieten boot messages | |
sysrc rc_startmsgs=NO | |
sysrc -f /boot/loader.conf boot_mute=YES | |
sysrc -f /boot/loader.conf beastie_disable=YES | |
# Send rc standard output to dev null | |
sed -i '' 's/run_rc_script ${_rc_elem} ${_boot}/run_rc_script ${_rc_elem} ${_boot} > \/dev\/null/g' /etc/rc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment