Buildroot init scripts
Buildroot has been making effective use of the BusyBox init for many years. Buildroot has two scripts in /etc/init.d/ named rcS and rcK. The first one runs at boot up and iterates over all the scripts in /etc/init.d/ with names that begin with a capital S followed by two digits, and runs them in numerical order. These are the start scripts. The rcK script is run at shutdown and iterates over all the scripts beginning with a capital K followed by two digits, and runs them in numerical order. These are the kill scripts.
With this in place, it becomes easy for Buildroot packages to supply their own start and kill scripts, using the two digit number to impose the order in which they should be run, and so the system becomes ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access