mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-26 15:02:50 +02:00
unify backup suffixes
Origin commit data
------------------
Branch: ni/coolstream
Commit: 30d4eec937
Author: vanhofen <vanhofen@gmx.de>
Date: 2020-11-10 (Tue, 10 Nov 2020)
Origin message was:
------------------
- unify backup suffixes
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
. /etc/init.d/globals
|
||||
|
||||
HOST=$(hostname)
|
||||
DATE=$(date +%Y-%m-%d_%H-%M-%S)
|
||||
DATE=$(date +%Y%m%d_%H%M)
|
||||
USRF="/var/tuxbox/config/tobackup.conf"
|
||||
BAKF="$1/${2:-settings_${HOST}_${DATE}.tar.gz}"
|
||||
|
||||
|
@@ -43,7 +43,7 @@
|
||||
|
||||
#include <driver/display.h>
|
||||
#include <driver/screen_max.h>
|
||||
#include <driver/display.h>
|
||||
#include <lib/libnet/libnet.h>
|
||||
#include <system/helpers.h>
|
||||
#include <system/debug.h>
|
||||
|
||||
@@ -106,8 +106,11 @@ int CSettingsManager::exec(CMenuTarget* parent, const std::string &actionKey)
|
||||
return res;
|
||||
}
|
||||
|
||||
std::string fname = "neutrino.conf";
|
||||
CKeyboardInput * sms = new CKeyboardInput(LOCALE_EXTRA_SAVECONFIG, &fname);
|
||||
std::string hostName = "";
|
||||
netGetHostname(hostName);
|
||||
std::string timeStr = getNowTimeStr("_%Y%m%d_%H%M");
|
||||
std::string fname = "neutrino_" + hostName + timeStr + ".conf";
|
||||
CKeyboardInput * sms = new CKeyboardInput(LOCALE_EXTRA_SAVECONFIG, &fname, 45);
|
||||
sms->exec(NULL, "");
|
||||
delete sms;
|
||||
|
||||
|
Reference in New Issue
Block a user