Skip to content
Snippets Groups Projects
Commit b7651ee9 authored by Christof Schulze's avatar Christof Schulze Committed by Matthias Schiffer
Browse files

gluon-core: limit fq_codel memory to 1MB per AP with less than 48MB RAM (#1046)

parent 946d873c
No related branches found
No related tags found
No related merge requests found
#!/bin/sh
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"
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