scripts: sd_fusing_rpi3: check file type before writing an image
authorŁukasz Stelmach <stlman@poczta.fm>
Mon, 13 Sep 2021 16:46:39 +0000 (18:46 +0200)
committerJaehoon Chung <jh80.chung@samsung.com>
Tue, 17 Oct 2023 04:19:32 +0000 (13:19 +0900)
commit6a8f2cadb123b1c3781ce77b2c61eb7389366ead
treefcd270acbaffb33429e74693058c59fcc539e3b3
parent4fd4345dea13fee4d9bffac319fc3522d6189784
scripts: sd_fusing_rpi3: check file type before writing an image

Sometimes, when sfdisk failure is not handeled properly, sd_fusing_rpi3
may leave a regular file named like a device in the /dev directory. Such
file will exist and prevent images from beeing properly flashed until
the machine is rebooted. The message indicates there is somehting wrong
with the device file so users may check and fix any problems.

Change-Id: Ie7021129b858f0f4f2923ce88ee96f349e869029
Signed-off-by: Łukasz Stelmach <stlman@poczta.fm>
scripts/tizen/sd_fusing_rpi3.sh