Files
system76-firmware-open/scripts/_minipro.sh
2022-02-24 15:32:09 -07:00

16 lines
304 B
Bash

#!/usr/bin/env bash
if [ ! -d "models/${MODEL}" ]
then
echo "model '${MODEL}' not found" >&2
exit 1
fi
MODEL_DIR="$(realpath "models/${MODEL}")"
if [ ! -f "${MODEL_DIR}/minipro.txt" ]
then
echo "model '${MODEL}' does not have minipro.txt" >&2
exit 1
fi
CHIP="$(cat "${MODEL_DIR}/minipro.txt")"