mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 17:31:20 +02:00
- network-service: remove hardcoded paths
Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -176,12 +176,8 @@ int CNetworkServiceSetup::showNetworkServiceSetup()
|
||||
items[i] = new CNetworkService(services[i].cmd, services[i].options);
|
||||
services[i].enabled = items[i]->Enabled();
|
||||
|
||||
std::string execute1 = "/bin/" + services[i].cmd;
|
||||
std::string execute2 = "/sbin/" + services[i].cmd;
|
||||
|
||||
active = false;
|
||||
if ( !(access(execute1, F_OK)) || !(access(execute2, F_OK)) )
|
||||
active = true;
|
||||
std::string exec = find_executable(services[i].cmd.c_str());
|
||||
active = !exec.empty();
|
||||
|
||||
if ( (services[i].name == "Telnet") && useinetd)
|
||||
active = false;
|
||||
|
Reference in New Issue
Block a user