提交 4bc7ffe5 authored 作者: blu's avatar blu

new feature: evwifi

上级 271aa7d2
...@@ -71,7 +71,7 @@ class WifiMgr { ...@@ -71,7 +71,7 @@ class WifiMgr {
fileApd.close(); fileApd.close();
// start hostapd // start hostapd
auto t = thread([](){ auto t = thread([](){
system("systemctl stop wpa_supplicant@wlan1;ifconfig wlan1 down;pkill hostapd;" system("pkill hostapd;systemctl stop wpa_supplicant@wlan1;ifconfig wlan1 down;"
"ifconfig wlan1 up;ifconfig wlan1 192.168.0.1;hostapd /etc/apd.conf -B"); "ifconfig wlan1 up;ifconfig wlan1 192.168.0.1;hostapd /etc/apd.conf -B");
// TODO: check result // TODO: check result
}); });
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论