From e33c2f7a8ca03e48d93177dd561dc6563f0be414 Mon Sep 17 00:00:00 2001 From: Jacob Pease Date: Sat, 2 Nov 2024 12:36:45 -0500 Subject: [PATCH] Added usage and help functions to write-bytes.sh --- linux/sdcard/write-bytes.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/linux/sdcard/write-bytes.sh b/linux/sdcard/write-bytes.sh index ba847e876..83a8481e5 100755 --- a/linux/sdcard/write-bytes.sh +++ b/linux/sdcard/write-bytes.sh @@ -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 ] " 1>&2; exit 1; } + +help() { + echo "Usage: $0 [OPTIONS] " + echo " -i Input text file with hex bytes." + echo " -b Output binary file." + exit 0; +} + INPUTFILE="" OUTPUTFILE=""