From 374d4e75ce6b1eea7baf86687bc89495df926f05 Mon Sep 17 00:00:00 2001 From: Velsoth Date: Sun, 3 Nov 2019 04:03:16 +0000 Subject: [PATCH] Replace the auto-run script --- auto-run | 16 ---------------- cb-helper | 16 +++++++++++++++- 2 files changed, 15 insertions(+), 17 deletions(-) delete mode 100755 auto-run diff --git a/auto-run b/auto-run deleted file mode 100755 index 7d5d37c..0000000 --- a/auto-run +++ /dev/null @@ -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" diff --git a/cb-helper b/cb-helper index 3a05757..63b7628 100755 --- a/cb-helper +++ b/cb-helper @@ -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"