mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-12-24 21:02:35 +00:00
Fixes crash in kernel due to nft accessing kernel in hotplug code early on. Signed-off-by: Chaitanya Godavarthi <chaitanya.kiran@netexperience.com>
11 lines
222 B
Bash
11 lines
222 B
Bash
#!/bin/sh
|
|
|
|
[ "$ACTION" = "add" ] || exit 0
|
|
phy=$(cat /sys/class/net/${DEVICENAME}/phy80211/name)
|
|
|
|
rlimit=$(uci get wireless.${DEVICENAME}.rlimit)
|
|
|
|
[ -z "$rlimit" -o -z "$phy" ] && exit 0
|
|
/etc/init.d/nft-qos restart
|
|
exit 0
|