diff --git a/package/gluon-core/files/etc/hotplug.d/ieee80211/01-gluon-core-codel-memusage b/package/gluon-core/files/etc/hotplug.d/ieee80211/01-gluon-core-codel-memusage index cf0f1740..07da10c9 100755 --- a/package/gluon-core/files/etc/hotplug.d/ieee80211/01-gluon-core-codel-memusage +++ b/package/gluon-core/files/etc/hotplug.d/ieee80211/01-gluon-core-codel-memusage @@ -1,8 +1,8 @@ #!/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