Skip to content

Commit

Permalink
free-ram: drop caches
Browse files Browse the repository at this point in the history
as per suggestion of Adrian Schmutzler / Gluon
  • Loading branch information
SvenRoederer committed Oct 25, 2020
1 parent e9acd35 commit 79360e9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions embedded-files/lib/update/freifunk-berlin_freeup-ram.sh
Expand Up @@ -14,6 +14,8 @@ ffberlin_freeup_ram() {
rm >/dev/null -f /tmp/luci-indexcache*
rm >/dev/null -rf /tmp/luci-modulecache

# taken from Gluon (http://lists.infradead.org/pipermail/openwrt-devel/2020-October/031783.html)
echo 3 > /proc/sys/vm/drop_caches
}

ffberlin_freeup_ram
Expand Down

0 comments on commit 79360e9

Please sign in to comment.