Debian Codegraph @

.gitlab-ci/bare-metal/bm-init.sh

raw
1 #!/bin/sh
2
3 # Init entrypoint for bare-metal devices; calls common init code.
4
5 # First stage: very basic setup to bring up network and /dev etc
6 /init-stage1.sh
7 INIT_STAGE1_EXIT_CODE=$?
8
9 export CURRENT_SECTION=dut_boot
10
11 # Second stage: run jobs
12 test $INIT_STAGE1_EXIT_CODE -eq 0 && /init-stage2.sh
13
14 # Wait until the job would have timed out anyway, so we don't spew a "init
15 # exited" panic.
16 sleep 6000