mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-10-29 09:32:34 +00:00
5 lines
217 B
Bash
Executable File
5 lines
217 B
Bash
Executable File
#!/bin/sh
|
|
[ -f /tmp/run/hostapd-cli-$1.pid ] && kill "$(cat /tmp/run/hostapd-cli-$1.pid)"
|
|
ubus -t 120 wait_for hostapd.$1
|
|
[ $? = 0 ] && hostapd_cli -a /usr/libexec/ratelimit.sh -i $1 -P /tmp/run/hostapd-cli-$1.pid -B
|