Files
system76-coreboot/system76/flash.sh

20 lines
280 B
Bash
Executable File

#!/usr/bin/env bash
set -ex
D="$(dirname "$(realpath "$0")")"
for N in "$@"
do
P="$D/$N"
if [ ! -d "$P" ]
then
echo "$0 [model]"
exit 1
fi
sudo "$P/flashrom" \
-p internal:laptop=force_I_want_a_brick \
-w "$P/coreboot"
done