Skip to content

Instantly share code, notes, and snippets.

@indgy
Last active April 12, 2022 01:39
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save indgy/185a8ec55bf9043ef885ae424a6f967a to your computer and use it in GitHub Desktop.
Save indgy/185a8ec55bf9043ef885ae424a6f967a to your computer and use it in GitHub Desktop.
FreeBSD Quiet Boot
#!/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