DELAY.4TH(8)

πŸ“¦ version 15.1, in freebsd 14.5, freebsd 15.1

πŸ’… DELAY.4TH β€” FreeBSD debugging boot module ✨

okay so bestie, let me put you on to delay.4th. that's the manual name btw β€” it lives in the System Manager's Manual section, and it's literally the little loader script that adds debugging energy to your boot πŸ’–


🌸 NAME 🌸

delay.4th β€” the FreeBSD debugging boot module πŸŽ€


✨ DESCRIPTION ✨

so the file that goes by the name of delay.4th is a set of commands designed to add debugging capabilities to loader(8). periodt. it's giving "small but mighty" πŸ’…

but real talk β€” the commands of delay.4th by themselves are not enough for most uses. like, they're a supporting character, not the main character. please refer to the examples below for the most common situations, and to loader(8) for additional commands 🫢

Before using any of the commands provided in delay.4th, it must be included through the command:

include delay.4th

this line is already present in /boot/beastie.4th file, so it is not needed (and should not be re-issued) in a normal setup πŸ™ˆ like don't double up, bestie, that's not the vibe.

The commands provided by it are:

  • delay_execute β€” executes the [string] procedure stored in the delay_command environment variable after loader_delay seconds ⏱️

If the optional delay_showdots environment variable is set, a continuous series of dots is printed 🫧 (yes, dots. an actual stream of them. iconic.)

During the duration, the user can either press Ctrl+C (or Esc) to abort or ENTER to proceed immediately πŸ”₯

The environment variables that effect its behavior are:

  • delay_command β€” the command to be executed by delay_execute πŸ‘‘
  • loader_delay β€” the duration (in seconds) to delay before executing delay_command ⏳
  • delay_showdots β€” if set, will cause delay_execute to print a continuous series of dots during the delay duration πŸ“

πŸ¦‹ FILES πŸ¦‹

  • /boot/loader β€” the loader(8) 🧚
  • /boot/delay.4th β€” delay.4th itself πŸ’œ
  • /boot/loader.rc β€” loader(8) bootstrapping script 🌈

πŸŽ€ EXAMPLES πŸŽ€

introducing a 5-second delay before including another file from /boot/loader.rc β€” this is the whole entire slay:

include /boot/delay.4th
set delay_command="include /boot/other.4th"
set delay_showdots
set loader_delay=5
delay_execute

like… five seconds of vibes and dots before the next file loads. we love a dramatic pause πŸ’…βœ¨


πŸ‘€ SEE ALSO πŸ‘€

loader.conf(5), beastie.4th(8), loader(8), loader.4th(8)

go read those too, iykyk πŸ“š


⭐ HISTORY ⭐

The delay.4th set of commands first appeared in FreeBSD 9.0 πŸŽ‰ so it's been serving looks for a minute.


πŸ’– AUTHORS πŸ’–

The delay.4th set of commands was written by Devin Teske <dteske@FreeBSD.org> β€” thank you king πŸ«ΆπŸ‘‘


ngl the whole point is: include it, set your env vars, call delay_execute, and enjoy the dots. don't re-include it if beastie.4th already did. that's the tea β˜•πŸ’€

and that's the page, bestie πŸ•°οΈβœ¨ β€” this rendering comes from the Debian build dated May 18, 2011, filed under DELAY.4TH(8). mwah πŸ’‹

πŸ“¦ where this page comes from