PiPedal 1.2.33 initial commit

This commit is contained in:
Robin Davies
2024-08-08 12:53:02 -04:00
parent 0e378997a5
commit a3847c8184
255 changed files with 22008 additions and 1791 deletions
@@ -0,0 +1,18 @@
#include "DnsMasqService.hpp"
#include "SysExec.hpp"
#include "ss.hpp"
void DnsMasqService::Start(const std::string&confFile, const std::string&wlan)
{
std::string exec = SS("dnsmasq --conf-file=" << confFile << " --interface=p2p-"<< wlan << "-*");
this->pid = (int64_t)pipedal::sysExecAsync(exec);
}
void DnsMasqService::Stop()
{
if (this->pid != -1)
{
pipedal::sysExecTerminate(pid,1000,500);
}
}