123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- #!/bin/bash
- [ "x${DEBUG+set}" = 'xset' ] && set -v
- set -u -e
- printf "Downloading flashrom\n"
- rm -Rf "flashrom/"
- git clone https://github.com/stefanct/flashrom.git
- (
- cd "flashrom/"
- git checkout 0.9.9
- git reset --hard
- printf "Enabling whitelist for X200S, X200 Tablet, T400, T500 and R400\n"
- git am "../resources/flashrom/patch/0001-New-laptops-whitelisted-ThinkPad-R400-and-ThinkPad-T.patch"
- printf "Enabling whitelist for Libiquity Taurinus X200\n"
- git am "../resources/flashrom/patch/0002-Add-whitelist-for-Taurinus-X200-laptop.patch"
- printf "Patching flashchips.c to remove the redundant entries\n"
- git am "../resources/flashrom/patch/0003-purged-chips.patch"
- )
- printf "\n\n"
|