Commit 9299998f authored by HgO's avatar HgO

Merge branch '15-pass-verbose-mode' into 'unstable'

Pass verbose parameter to install-sd.sh script

See merge request Neutrinet/neutrinet_cube_install!19
parents 60aba598 1452022c
......@@ -781,12 +781,18 @@ function flash_sd_card() {
download_install_sd_script
fi
local install_sd_options="-y '$HYPERCUBE_FILE' -f '$CUBE_RESOURCES_LOCATION/$image'"
if $EXECUTE_CUSTOM_SCRIPT
then
"./$CUBE_RESOURCES_LOCATION/$INSTALL_SD_SCRIPT_NAME" -y "$HYPERCUBE_FILE" -f "$CUBE_RESOURCES_LOCATION/$image" -c "$CUSTOM_SCRIPT_PATH"
else
"./$CUBE_RESOURCES_LOCATION/$INSTALL_SD_SCRIPT_NAME" -y "$HYPERCUBE_FILE" -f "$CUBE_RESOURCES_LOCATION/$image"
install_sd_options="$install_sd_options -c '$CUSTOM_SCRIPT_PATH'"
fi
if [[ $LOG_LEVEL -eq ${LOG_LEVELS[DEBUG]} ]]
then
install_sd_options="$install_sd_options -d"
fi
"./$CUBE_RESOURCES_LOCATION/$INSTALL_SD_SCRIPT_NAME" $install_sd_options
}
function prepare_cube() {
......
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