mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
use my_system instead of system
Origin commit data
------------------
Commit: bb2efeb45b
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2012-10-02 (Tue, 02 Oct 2012)
This commit is contained in:
@@ -34,6 +34,8 @@
|
||||
#include <driver/screen_max.h>
|
||||
|
||||
#include <system/debug.h>
|
||||
#include <system/helpers.h>
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
#define TOUCH_BASE "/var/etc/."
|
||||
@@ -70,18 +72,17 @@ CNetworkService::CNetworkService(std::string cmd, std::string opts)
|
||||
|
||||
void CNetworkService::Start()
|
||||
{
|
||||
std::string cmd = command + " " + options;
|
||||
printf("CNetworkService::Start: %s\n", cmd.c_str());
|
||||
system(cmd.c_str());
|
||||
printf("CNetworkService::Start: %s %s\n", command.c_str(), options.c_str());
|
||||
my_system( command.c_str(), options.c_str());
|
||||
enabled = true;
|
||||
TouchFile();
|
||||
}
|
||||
|
||||
void CNetworkService::Stop()
|
||||
{
|
||||
std::string cmd = "killall " + command;
|
||||
printf("CNetworkService::Stop: %s\n", cmd.c_str());
|
||||
system(cmd.c_str());
|
||||
const char killall []= "killall";
|
||||
printf("CNetworkService::Stop: %s %s\n", killall, command.c_str());
|
||||
my_system(killall, command.c_str());
|
||||
enabled = false;
|
||||
TouchFile();
|
||||
}
|
||||
|
Reference in New Issue
Block a user