Message ID | 20200402125343.128007-1-fabian@blaese.de |
---|---|
State | Superseded |
Headers | show |
diff --git a/buildscript b/buildscript index b0935a4..cdaa9ff 100755 --- a/buildscript +++ b/buildscript @@ -305,6 +305,12 @@ cp_firmware() { cp "$builddir/bin/targets/${chipset}/${subtarget}/$image_factory" "./bin/$variant/$filename_build_factory" fi done + + image_tftp=${image/sysupgrade/tftp-recovery} + if [[ -f "$builddir/bin/targets/${chipset}/${subtarget}/$image_tftp" ]]; then + filename_build_tftp=${filename_build/sysupgrade/tftp-recovery} + cp "$builddir/bin/targets/${chipset}/${subtarget}/$image_tftp" "./bin/$variant/$filename_build_tftp" + fi done }
Some devices cannot be flashed using the WebUI. Instead, a tftp-recovery image is provided, which can be initially flashed to the device using TFTP. As the buildscript manually selects the images to copy, the tftp-recovery image is added to it. Signed-off-by: Fabian Bläse <fabian@blaese.de> --- buildscript | 6 ++++++ 1 file changed, 6 insertions(+)