Skip to content
Snippets Groups Projects
Commit 6a2e7d45 authored by Nils Schneider's avatar Nils Schneider
Browse files

gluon-autoupdater: drop caches before upgrade

This will free about 5 to 12 MB of RAM even on lightly used devices
yielding plenty of RAM for autoupdate to succeed.
parent 3712f879
No related branches found
No related tags found
No related merge requests found
......@@ -138,6 +138,10 @@ autoupdate() {
if newer_than "$fw_version" "$my_version"; then
echo "New version available"
# drop caches to make room for firmware image
sync
sysctl -w vm.drop_caches=3
local fw_image=$(mktemp)
fetch_firmware $MIRROR $fw_image || { rm -f $fw_image; return 1; }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment