mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-24 07:46:48 +00:00
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>
This commit is contained in:
parent
d67963943b
commit
06c2d5524c
@ -5,6 +5,7 @@ START=95
|
|||||||
boot() {
|
boot() {
|
||||||
mount_root done
|
mount_root done
|
||||||
rm -f /sysupgrade.tgz && sync
|
rm -f /sysupgrade.tgz && sync
|
||||||
|
rm -f /tmp/sysupgrade.tar && sync
|
||||||
|
|
||||||
# process user commands
|
# process user commands
|
||||||
[ -f /etc/rc.local ] && {
|
[ -f /etc/rc.local ] && {
|
||||||
|
Loading…
Reference in New Issue
Block a user