Replace the auto-run script

This commit is contained in:
Fivel Sotheby 2019-11-03 04:03:16 +00:00
parent 4e1d59a9bd
commit 374d4e75ce
2 changed files with 15 additions and 17 deletions

View File

@ -1,16 +0,0 @@
#!/bin/bash
printf "Starting auto run"
bash ./cb-helper download_code || exit 1
bash ./cb-helper build_utils || exit 1
bash ./cb-helper split_bios || exit 1
bash ./cb-helper neuter_me || exit 1
bash ./cb-helper pre_build_coreboot || exit 1
bash ./cb-helper build_coreboot || exit 1
bash ./cb-helper build_grub || exit 1
bash ./cb-helper assemble_grub || exit 1
bash ./cb-helper config_seabios || exit 1
bash ./cb-helper install_grub || exit 1
printf "Auto run finished successfully"

View File

@ -242,9 +242,23 @@ function flash() {
fi
}
function doit() {
echo "Downloading, building and installing everything"
download_code
build_utils
split_bios
neuter_me
pre_build_coreboot
build_coreboot
build_grub
assemble_grub
config_seabios
install_grub
}
# Run operation
if [[ $1 != "" ]]; then
eval "$1"
eval "$@"
# Exit if no operation is specified
else
printf "No operation specified\n"