Skip to content
Snippets Groups Projects
Verified Commit b34dca6e authored by Michal Hrusecky's avatar Michal Hrusecky :mouse:
Browse files

Add update-factory command

Add support for updating factory image without need to provide exact
link.
parent 5991c096
No related merge requests found
......@@ -164,6 +164,8 @@ Commands:
import path Import exported snapshot; path must point to .info file for the
snapshot.
update-factory Updates factory image, if the devices is supported.
help Display this help
version Display version
......@@ -978,6 +980,14 @@ case $command in
upload)
upload "$@"
;;
update-factory)
get_board
if [ "$BOARD" != schnapps ]; then
import_sn -f "https://repo.turris.cz/hbs/medkit/$BOARD-medkit-latest.tar.gz"
else
die "Don't know what device I am, can't update my factory image"
fi
;;
import)
import_sn "$@"
;;
......
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