mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 07:51:11 +02:00
src/system/setting_helpers.cpp: use my_system instead of system
Origin commit data
------------------
Branch: ni/coolstream
Commit: 89ee8f7a5e
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2012-11-22 (Thu, 22 Nov 2012)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -58,7 +58,7 @@
|
||||
#include <gui/widget/stringinput.h>
|
||||
#include <gui/infoclock.h>
|
||||
#include <driver/volume.h>
|
||||
|
||||
#include <system/helpers.h>
|
||||
// obsolete #include <gui/streaminfo.h>
|
||||
|
||||
#include <gui/widget/messagebox.h>
|
||||
@@ -445,7 +445,7 @@ bool CTZChangeNotifier::changeNotify(const neutrino_locale_t, void * Data)
|
||||
printf("Timezone: %s -> %s\n", name.c_str(), zone.c_str());
|
||||
std::string cmd = "cp /usr/share/zoneinfo/" + zone + " /etc/localtime";
|
||||
printf("exec %s\n", cmd.c_str());
|
||||
system(cmd.c_str());
|
||||
my_system("/bin/sh", "-c", cmd.c_str());
|
||||
cmd = ":" + zone;
|
||||
setenv("TZ", cmd.c_str(), 1);
|
||||
}
|
||||
@@ -468,7 +468,7 @@ int CDataResetNotifier::exec(CMenuTarget* /*parent*/, const std::string& actionK
|
||||
return true;
|
||||
|
||||
if(delete_all) {
|
||||
system("rm -f /var/tuxbox/config/zapit/*.conf");
|
||||
my_system("/bin/sh", "-c", "rm -f /var/tuxbox/config/zapit/*.conf");
|
||||
CServiceManager::getInstance()->SatelliteList().clear();
|
||||
CZapit::getInstance()->LoadSettings();
|
||||
CZapit::getInstance()->GetConfig(zapitCfg);
|
||||
@@ -488,7 +488,7 @@ int CDataResetNotifier::exec(CMenuTarget* /*parent*/, const std::string& actionK
|
||||
CFrameBuffer::getInstance()->Clear();
|
||||
}
|
||||
if(delete_chan) {
|
||||
system("rm -f /var/tuxbox/config/zapit/*.xml");
|
||||
my_system("/bin/sh", "-c", "rm -f /var/tuxbox/config/zapit/*.xml");
|
||||
g_Zapit->reinitChannels();
|
||||
}
|
||||
return ret;
|
||||
|
Reference in New Issue
Block a user