From: Rodrigo Balerdi Date: Tue, 30 Apr 2024 11:25:57 +0000 (-0300) Subject: base-files: fix cleanup after settings restore X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=06c2d5524c0d162ac2af5e55b03e217fcb882cf7;p=openwrt%2Fstaging%2Fstintel.git 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 Link: https://github.com/openwrt/openwrt/pull/15339 Signed-off-by: John Crispin --- 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 ] && {