Batch Script At 1st Boot?

Hi,

during first boot up I would like to place some custom commands, i.e. pkg install screen, to add features, configs, apps to the default installation. Therefore I would like to write sort of bash/sh/zsh script to be executed at the end of first boot.

How to do start a script at the end of the boot sequence?
 
Two common ways to run scripts at startup are to follow the requirements for the rc.d system and put them in /usr/local/etc/rc.d/ or use cron @reboot.

There are likely others, but these have worked well enough for me so far.
 
Back
Top