Skip to content
Snippets Groups Projects
Unverified Commit 46c5effa authored by Matthias Schiffer's avatar Matthias Schiffer
Browse files

gluon-core: reduce mac80211 fq_codel memory limit to 256KB on devices with 32MB RAM

parent d210cfca
No related branches found
No related tags found
No related merge requests found
#!/bin/sh
if [ "${ACTION}" = "add" ]; then
if [ "${ACTION}" = 'add' ]; then
RAM=$(awk '/MemTotal/ {print $2}' /proc/meminfo)
if [ "$RAM" -lt $((48*1024)) ]; then
echo "fq_memory_limit 1048576" > "/sys/kernel/debug/ieee80211/$DEVICENAME/aqm"
if [ "$RAM" -le $((32*1024)) ]; then
echo 'fq_memory_limit 262144' > "/sys/kernel/debug/ieee80211/$DEVICENAME/aqm"
fi
fi
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