Skip to content

Instantly share code, notes, and snippets.

@JackieMium
Forked from indgy/quiet_boot.sh
Created October 9, 2021 03:05
Show Gist options
  • Save JackieMium/046011081d6bc81eebac536e5f9a635f to your computer and use it in GitHub Desktop.
Save JackieMium/046011081d6bc81eebac536e5f9a635f 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