If you do a git clone from scratch, it takes ages because it has to downlaod hundreds of MB of files that used to be in this repository (and still are because they are in the git history). It would be nice if you could either alter the git history removing those files or at least mention it in the README.
Personally I cancelled my git clone after a minute because it took too long. Then I used:
git clone --depth=1 https://github.com/angela-d/firmware_oneplus.git
so that it only downloads the files contained in the latest commit. You could mention that command in the README.
Other than that, I love it and it worked great for me.
ifelse(msm.boot_update("backup"), (
package_extract_file("firmware-update/cmnlib64.mbn", "/dev/block/bootdevice/by-name/cmnlib64bak");
package_extract_file("firmware-update/cmnlib.mbn", "/dev/block/bootdevice/by-name/cmnlibbak");
package_extract_file("firmware-update/hyp.mbn", "/dev/block/bootdevice/by-name/hypbak");
package_extract_file("firmware-update/tz.mbn", "/dev/block/bootdevice/by-name/tzbak");
package_extract_file("firmware-update/abl.elf", "/dev/block/bootdevice/by-name/ablbak");
package_extract_file("firmware-update/keymaster.mbn", "/dev/block/bootdevice/by-name/keymasterbak");
package_extract_file("firmware-update/xbl.elf", "/dev/block/bootdevice/by-name/xblbak");
package_extract_file("firmware-update/rpm.mbn", "/dev/block/bootdevice/by-name/rpmbak");
), "");