Added usage and help functions to write-bytes.sh

This commit is contained in:
Jacob Pease 2024-11-02 12:36:45 -05:00
parent 2a8e213f20
commit e33c2f7a8c

View file

@ -3,6 +3,15 @@
# This file writes a bunch of bytes to the flash card based on a text
# file input with bytes written in hexadecimal.
usage() { echo "Usage: $0 [-zh] [-b <path/to/buildroot>] <device>" 1>&2; exit 1; }
help() {
echo "Usage: $0 [OPTIONS] <device>"
echo " -i Input text file with hex bytes."
echo " -b <path/to/buildroot> Output binary file."
exit 0;
}
INPUTFILE=""
OUTPUTFILE=""