From db46d22cec7ff2e9305c6202827ecd2fdf2252ef Mon Sep 17 00:00:00 2001 From: MilhouseVH Date: Sat, 25 Jan 2020 06:53:32 +0000 Subject: [PATCH] init: remove file before overwriting --- packages/sysutils/busybox/scripts/init | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/sysutils/busybox/scripts/init b/packages/sysutils/busybox/scripts/init index 57181c1804..75836220d6 100755 --- a/packages/sysutils/busybox/scripts/init +++ b/packages/sysutils/busybox/scripts/init @@ -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