mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-12-21 11:22:50 +00:00
Add hotplug script for rate limiting to occur when a wifi interface comes up. Signed-off-by: Chaitanya Kiran Godavarthi <chaitanya.kiran@connectus.ai>
9 lines
171 B
Bash
9 lines
171 B
Bash
#!/bin/sh
|
|
|
|
[ "$ACTION" = "add" ] || exit 0
|
|
rlimit=$(uci get wireless.${DEVICENAME}.rlimit)
|
|
|
|
[ -z "$rlimit" -o "$rlimit" = 0 ] && exit 0
|
|
/etc/init.d/nft-qos restart
|
|
exit 0
|