wifi-profile: fix d8021xd_chk

This commit is contained in:
hanwckf 2022-11-21 18:22:36 +08:00 committed by GitHub
parent 1141dc8951
commit 2073b2ad6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -67,6 +67,7 @@ function del_vif_from_lan(vif)
end
function d8021xd_chk(devname, prefix, vif, enable)
local mtkwifi = require("mtkwifi")
if mtkwifi.exists("/tmp/run/8021xd_"..vif..".pid") then
os.execute("cat /tmp/run/8021xd_"..vif..".pid | xargs kill -9")
os.execute("rm /tmp/run/8021xd_"..vif..".pid")