diff --git a/flash.sh b/flash.sh new file mode 100755 index 0000000000..4c5ebbfcef --- /dev/null +++ b/flash.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +set -ex + +MODEL="$(grep CONFIG_VARIANT_DIR .config | cut -d '"' -f2)" + +sudo "system76/$MODEL/flashrom" \ + -p internal:laptop=force_I_want_a_brick \ + -w "build/coreboot.rom" +