initial commit

parent 28257788
Pipeline #150 failed with stages
......@@ -624,8 +624,10 @@ function flash_sd_card() {
then
download_install_sd_script
fi
CUSTOM_SCRIPT_PATH="$(realpath $OPT_CUSTOMSCRIPTPATH)"
"./$CUBE_RESOURCES_LOCATION/$INSTALL_SD_SCRIPT_NAME" -y "$HYPERCUBE_FILE" -f "$CUBE_RESOURCES_LOCATION/$image"
"./$CUBE_RESOURCES_LOCATION/$INSTALL_SD_SCRIPT_NAME" -y "$HYPERCUBE_FILE" -f "$CUBE_RESOURCES_LOCATION/$image" -c "$CUSTOM_SCRIPT_PATH"
}
function prepare_cube() {
......@@ -697,6 +699,8 @@ function show_help() {
echo -e " \e[1m-p\e[0m" >&2
echo -e " Downloads and prepares all general images and files needed for installing the cube" >&2
echo -e " \e[2mNext time this script is ran from the same folder as it is ran now, these files and scrips will be used\e[0m" >&2
echo -e " \e[1m-c\e[0m \e[4mpath\e[0m" >&2
echo -e " Include custom script to be executed at the end of system installation" >&2
echo -e " \e[1m-h\e[0m" >&2
echo -e " Show this help" >&2
}
......@@ -720,10 +724,11 @@ function prepare() {
# GET OPTIONS
#=================================================
while getopts "vhp" opt; do
while getopts "vhpc:" opt; do
case $opt in
v) LOG_LEVEL=${LOG_LEVELS[DEBUG]};;
p) prepare; exit 0;;
c) opt_customscriptpath=$OPTARG;;
h) show_help; exit 0;;
\?) show_help; exit 0;;
esac
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment