Skip to content

Commit

Permalink
clear cache for more memory
Browse files Browse the repository at this point in the history
  • Loading branch information
simonchen committed Feb 16, 2023
1 parent b521bde commit 835724e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions trunk/user/scripts/dev_init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@ echo 1 >/sys/class/leds/blue\:status/brightness
echo 0 >/sys/class/leds/green\:status/brightness
echo 0 >/sys/class/leds/red\:status/brightness

# clear cache for more memory
echo 3 > /proc/sys/vm/drop_caches

# perform start script
if [ -x /etc/storage/start_script.sh ] ; then
/etc/storage/start_script.sh
Expand Down

0 comments on commit 835724e

Please sign in to comment.