Home
last modified time | relevance | path

Searched refs:ForkCmdAndWait (Results 1 – 1 of 1) sorted by relevance

/external/libweave/examples/provider/
Dwifi_manager.cc41 int ForkCmdAndWait(const std::string& path, in ForkCmdAndWait() function
149 CHECK_EQ(0, ForkCmdAndWait("nmcli", {"nm", "wifi", "off"})); in StartAccessPoint()
150 CHECK_EQ(0, ForkCmdAndWait("rfkill", {"unblock", "wlan"})); in StartAccessPoint()
161 CHECK_EQ(0, ForkCmdAndWait("hostapd", {"-B", "-K", hostapd_conf})); in StartAccessPoint()
165 if (0 == ForkCmdAndWait("ifconfig", {iface_, "192.168.76.1/24"})) in StartAccessPoint()
181 CHECK_EQ(0, ForkCmdAndWait("dnsmasq", {"--conf-file=" + dnsmasq_conf})); in StartAccessPoint()
185 base::IgnoreResult(ForkCmdAndWait("pkill", {"-f", "dnsmasq.*/tmp/weave"})); in StopAccessPoint()
186 base::IgnoreResult(ForkCmdAndWait("pkill", {"-f", "hostapd.*/tmp/weave"})); in StopAccessPoint()
187 CHECK_EQ(0, ForkCmdAndWait("nmcli", {"nm", "wifi", "on"})); in StopAccessPoint()