From a80b0ef9a898c8a05bb86e631b008e71db9c981e Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Wed, 27 Feb 2019 13:24:15 -0700 Subject: [PATCH] Add self flashing script --- flash.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 flash.sh 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" +