kOS/boot/rocket.ks

20 lines
627 B
Plaintext

// rocketOS bootstrapping sequence
// To maximize space, remove this file first thing. The in-memory copy
// will still run to completion, and it should only run once per vessel.
deletepath("/boot/rocket").
// Install software.
copypath("0:/lib/ui", "1:/lib/ui").
compile "0:/lib/navigation" to "1:/lib/navigation".
compile "0:/lib/throttle" to "1:/lib/throttle".
compile "0:/lib/stabilize_rocket" to "1:/lib/stabilize_rocket".
compile "0:/lib/node" to "1:/lib/node".
compile "0:/init/rocket" to "1:/init".
compile "0:/rocket/launch" to "1:/launch".
// Set OS to boot and restart.
set core:bootfilename to "/init".
reboot.