mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
Merge pull request #4145 from MilhouseVH/le10_init_fix_race
init: remove file before overwriting
This commit is contained in:
commit
26f52b6621
@ -313,6 +313,7 @@ update_file() {
|
||||
if [ -f "$UPDATE_DIR/$2" -a -f "$3" ]; then
|
||||
mount -o remount,rw /flash
|
||||
|
||||
rm -f "$3"
|
||||
StartProgress percent "Updating $1... " "$3" $(stat -t "$UPDATE_DIR/$2" | awk '{print $2}')
|
||||
# use dd here with conv=fsync so that all writes are non-buffered
|
||||
# ensuring accurate progress - take the sync hit during the
|
||||
|
Loading…
x
Reference in New Issue
Block a user