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:
satbaby
2011-03-16 19:39:35 +00:00
parent 18f85cd9cd
commit 8f064b2bbd
2 changed files with 6 additions and 6 deletions

View File

@@ -604,8 +604,8 @@ void CNetworkSetup::showCurrentNetworkSettings()
else { else {
netGetNameserver(nameserver); netGetNameserver(nameserver);
netGetDefaultRoute(router); netGetDefaultRoute(router);
CNetworkConfig networkConfig; CNetworkConfig _networkConfig;
std::string dhcp = networkConfig.inet_static ? g_Locale->getText(LOCALE_OPTIONS_OFF) : g_Locale->getText(LOCALE_OPTIONS_ON); std::string dhcp = _networkConfig.inet_static ? g_Locale->getText(LOCALE_OPTIONS_OFF) : g_Locale->getText(LOCALE_OPTIONS_ON);
text = (std::string)g_Locale->getText(LOCALE_NETWORKMENU_DHCP) + ": " + dhcp + '\n' text = (std::string)g_Locale->getText(LOCALE_NETWORKMENU_DHCP) + ": " + dhcp + '\n'
+ g_Locale->getText(LOCALE_NETWORKMENU_IPADDRESS ) + ": " + ip + '\n' + g_Locale->getText(LOCALE_NETWORKMENU_IPADDRESS ) + ": " + ip + '\n'

View File

@@ -220,9 +220,9 @@ void CNetworkConfig::startNetwork(void)
std::string cmd = "/sbin/ifup " + ifname; std::string cmd = "/sbin/ifup " + ifname;
#ifdef DEBUG #ifdef DEBUG
printf("CNetworkConfig::startNetwork: %s\n", cmd.c_str()); printf("CNetworkConfig::startNetwork: %s\n", cmd.c_str());
#else
system(cmd.c_str());
#endif #endif
system(cmd.c_str());
if (!inet_static) { if (!inet_static) {
init_vars(); init_vars();
} }
@@ -234,9 +234,9 @@ void CNetworkConfig::stopNetwork(void)
std::string cmd = "/sbin/ifdown " + ifname; std::string cmd = "/sbin/ifdown " + ifname;
#ifdef DEBUG #ifdef DEBUG
printf("CNetworkConfig::stopNetwork: %s\n", cmd.c_str()); printf("CNetworkConfig::stopNetwork: %s\n", cmd.c_str());
#else
system(cmd.c_str());
#endif #endif
system(cmd.c_str());
} }
void CNetworkConfig::readWpaConfig() void CNetworkConfig::readWpaConfig()