Skip to content

Commit

Permalink
flashhost helper executable
Browse files Browse the repository at this point in the history
  • Loading branch information
foosel committed Mar 9, 2023
1 parent 889509d commit ced90ac
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions flashhost
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#!/usr/bin/env bash

SCRIPT_DIR=$(dirname "$(readlink -f "$0")")

export TARGET=$1
export TAG=$2

pushd $SCRIPT_DIR > /dev/null
source venv/bin/activate

echo "fab commands are now available. Examples:
Set a device into DUT mode:
fab flashhost_dut
Set a device into Host mode:
fab flashhost_host
Flash and provision an image:
fab flashhost_flash_and_provision:<image>[,firstrun=False]
List all images:
fab flashhost_list_images
--------------------------------------------
TARGET: $TARGET
TAG: $TAG
Hit Ctrl-D to exit"

bash

popd > /dev/null

0 comments on commit ced90ac

Please sign in to comment.