src/system/configure_network.cpp: use old startNetwork/stop

Origin commit data
------------------
Branch: ni/coolstream
Commit: 0cce4b9c80
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2012-11-08 (Thu, 08 Nov 2012)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Jacek Jendrzej
2012-11-08 20:08:17 +01:00
parent f1a62f638f
commit 1e990760e3

View File

@@ -218,11 +218,11 @@ void CNetworkConfig::commitConfig(void)
void CNetworkConfig::startNetwork(void) void CNetworkConfig::startNetwork(void)
{ {
const char _ifup[] = "/sbin/ifup"; std::string cmd = "/sbin/ifup " + ifname;
#ifdef DEBUG #ifdef DEBUG
printf("CNetworkConfig::startNetwork: %s %s\n",_ifup, ifname.c_str()); printf("CNetworkConfig::startNetwork: %s\n", cmd.c_str());
#endif #endif
my_system(_ifup, ifname.c_str()); my_system("/bin/sh", "-c", cmd.c_str());
if (!inet_static) { if (!inet_static) {
init_vars(); init_vars();
@@ -232,11 +232,11 @@ void CNetworkConfig::startNetwork(void)
void CNetworkConfig::stopNetwork(void) void CNetworkConfig::stopNetwork(void)
{ {
const char _ifdown[] = "/sbin/ifdown"; std::string cmd = "/sbin/ifdown " + ifname;
#ifdef DEBUG #ifdef DEBUG
printf("CNetworkConfig::stopNetwork: %s %s\n",_ifdown, ifname.c_str()); printf("CNetworkConfig::stopNetwork: %s\n", cmd.c_str());
#endif #endif
my_system(_ifdown, ifname.c_str()); my_system("/bin/sh", "-c", cmd.c_str());
} }