summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRodrigo Balerdi2024-04-30 11:25:57 +0000
committerJohn Crispin2024-12-12 10:01:56 +0000
commit06c2d5524c0d162ac2af5e55b03e217fcb882cf7 (patch)
treebc1ab37b906c11542fd6b0da8285fdb37aba09d8
parentd67963943b52bd996368f829d8dea5432de55292 (diff)
downloadopenwrt-06c2d5524c0d162ac2af5e55b03e217fcb882cf7.tar.gz
base-files: fix cleanup after settings restore
Some devices use file '/tmp/sysupgrade.tar' during settings restore and this potentially big file was not being cleaned up from RAM afterwards. See: do_mount_root() (base-files/files/lib/preinit/80_mount_root) Signed-off-by: Rodrigo Balerdi <lanchon@gmail.com> Link: https://github.com/openwrt/openwrt/pull/15339 Signed-off-by: John Crispin <john@phrozen.org>
-rwxr-xr-xpackage/base-files/files/etc/init.d/done1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/base-files/files/etc/init.d/done b/package/base-files/files/etc/init.d/done
index 32d6118df7..77d2721f7d 100755
--- a/package/base-files/files/etc/init.d/done
+++ b/package/base-files/files/etc/init.d/done
@@ -5,6 +5,7 @@ START=95
boot() {
mount_root done
rm -f /sysupgrade.tgz && sync
+ rm -f /tmp/sysupgrade.tar && sync
# process user commands
[ -f /etc/rc.local ] && {