1
0
Fork 0

flash-img-and-uboot.sh: add usage so I dont need to open the script to check params everytime

This commit is contained in:
Pratham Patel 2024-02-10 10:26:35 +05:30
parent c8063fa7d2
commit bac77fce45
Signed by: thefossguy
SSH Key Fingerprint: SHA256:/B3wAg7jnMEBQ2JwkebbS/eXVZANDmqRfnd9QkIhxMI
1 changed files with 4 additions and 0 deletions

View File

@ -7,6 +7,10 @@ if [[ "${EUID}" -ne 0 ]]; then
exit 1
fi
if [[ -z "${1:-}" ]]; then
echo 'USAGE: <image> <uboot> <seek> <bs> <dev>'
fi
IMAGE="$1"
UBOOT="$2"
SEEK="$3"