Skip to content
Snippets Groups Projects

Add update-factory command

Merged Michal Hrusecky requested to merge factory into master
2 unresolved threads
Compare and
1 file
+ 13
2
Preferences
Compare changes
+ 13
2
@@ -161,8 +161,11 @@ Commands:
server.
Multiple types can be divided by commas.
import path Import exported snapshot; path must point to .info file for the
snapshot.
import [-f] path Import exported snapshot; path must point to .info file for the
snapshot. Except when importing factory image with -f option, then it
has to be a tarball, but it can be an URL as well.
Please register or sign in to reply
update-factory Updates factory image, if the devices is supported.
    • Suggested change
      168 update-factory Updates factory image, if the devices is supported.
      168 update-factory Updates factory image, if the device is supported.
Please register or sign in to reply
help Display this help
@@ -978,6 +981,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 "$@"
;;