There are two types of startup scripts.
A "boot" script is executed on your server the very first time it starts.
/tmp/firstboot.exec
, it is executed with /bin/bash
(as root), and the output is saved to /tmp/firstboot.log
/tmp/firstboot.exec
, it is executed with /bin/sh
(as root), and the output is saved to /tmp/firstboot.log
C:\image\firstboot.cmd
, it is executed with cmd.exe
(as Administrator), and the output is saved to C:\image\firstboot.log
A "PXE" script can be used to automate installation of custom operating systems.