# SPDX-License-Identifier: GPL-2.0 # Copyright (C) 2017-present Team LibreELEC (https://libreelec.tv) if [ -f "$RELEASE_DIR/3rdparty/bootloader/flash.bin" ]; then echo "Writing flash.bin to $(basename $DISK)" dd if="$RELEASE_DIR/3rdparty/bootloader/flash.bin" of="$DISK" bs=1024 seek=33 conv=fsync,notrunc >"$SAVE_ERROR" 2>&1 || show_error fi