Fix OpenWrt hostapd regex warning

This commit is contained in:
2026-02-08 03:35:59 +03:00
parent 7db336f2aa
commit d242dafb9b

View File

@@ -353,7 +353,7 @@ async def get_openwrt_status(cfg: dict[str, Any]) -> str:
ifnames = _extract_ifnames(wireless)
ifname_meta = _extract_ifname_meta(wireless)
rc_l, out_l = await run_cmd_full(
ssh_cmd + ["sh", "-c", "ubus -S list | awk -F. '/^hostapd\.phy/{print $2}'"],
ssh_cmd + ["sh", "-c", r"ubus -S list | awk -F. '/^hostapd\.phy/{print $2}'"],
timeout=timeout_sec + 15,
)
if rc_l == 0 and out_l.strip():