Files
fwdeploy/run.sh
Piotr Król a8c5ddeee5 run.sh: make script independent
Signed-off-by: Piotr Król <piotr.krol@3mdeb.com>
2021-12-22 23:32:38 +01:00

9 lines
304 B
Bash
Executable File

#!/bin/bash
( [ "${1}" == "" ] || [ ! -f "${1}" ] || [ "${2}" == "" ] || [ ! -f "${2}" ] ) && \
echo "Usage: ./run.sh <fw_dump_bin> <cb_stub_bin>" && exit 1
docker run -v $(readlink -f ${1}):/home/fwdeploy/fw.bin -v $(readlink -f ${2}):/home/fwdeploy/cb.bin -t dasharo/fwdeploy:latest fw.bin cb.bin