mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
use system(cmd) in DEBUG mode
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1306 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -220,9 +220,9 @@ void CNetworkConfig::startNetwork(void)
|
||||
std::string cmd = "/sbin/ifup " + ifname;
|
||||
#ifdef DEBUG
|
||||
printf("CNetworkConfig::startNetwork: %s\n", cmd.c_str());
|
||||
#else
|
||||
system(cmd.c_str());
|
||||
#endif
|
||||
system(cmd.c_str());
|
||||
|
||||
if (!inet_static) {
|
||||
init_vars();
|
||||
}
|
||||
@@ -234,9 +234,9 @@ void CNetworkConfig::stopNetwork(void)
|
||||
std::string cmd = "/sbin/ifdown " + ifname;
|
||||
#ifdef DEBUG
|
||||
printf("CNetworkConfig::stopNetwork: %s\n", cmd.c_str());
|
||||
#else
|
||||
system(cmd.c_str());
|
||||
#endif
|
||||
system(cmd.c_str());
|
||||
|
||||
}
|
||||
|
||||
void CNetworkConfig::readWpaConfig()
|
||||
|
Reference in New Issue
Block a user