Add copyright message

This commit is contained in:
Andy CA6JAU 2018-08-04 10:47:23 -04:00
parent 7a3d4e4ca3
commit 0004859f4d
6 changed files with 60 additions and 0 deletions

View File

@ -38,6 +38,11 @@ const char* DEFAULT_INI_FILE = "DMR2NXDN.ini";
const char* DEFAULT_INI_FILE = "/etc/DMR2NXDN.ini"; const char* DEFAULT_INI_FILE = "/etc/DMR2NXDN.ini";
#endif #endif
const char* HEADER1 = "This software is for use on amateur radio networks only,";
const char* HEADER2 = "it is to be used for educational purposes only. Its use on";
const char* HEADER3 = "commercial networks is strictly prohibited.";
const char* HEADER4 = "Copyright(C) 2018 by CA6JAU, G4KLX and others";
#include <functional> #include <functional>
#include <algorithm> #include <algorithm>
#include <cstdio> #include <cstdio>
@ -205,6 +210,11 @@ int CDMR2NXDN::run()
} }
#endif #endif
LogInfo(HEADER1);
LogInfo(HEADER2);
LogInfo(HEADER3);
LogInfo(HEADER4);
m_defsrcid = m_conf.getDMRId(); m_defsrcid = m_conf.getDMRId();
std::string gatewayAddress = m_conf.getDstAddress(); std::string gatewayAddress = m_conf.getDstAddress();

View File

@ -44,6 +44,11 @@ const char* DEFAULT_INI_FILE = "DMR2YSF.ini";
const char* DEFAULT_INI_FILE = "/etc/DMR2YSF.ini"; const char* DEFAULT_INI_FILE = "/etc/DMR2YSF.ini";
#endif #endif
const char* HEADER1 = "This software is for use on amateur radio networks only,";
const char* HEADER2 = "it is to be used for educational purposes only. Its use on";
const char* HEADER3 = "commercial networks is strictly prohibited.";
const char* HEADER4 = "Copyright(C) 2018 by CA6JAU, G4KLX and others";
#include <functional> #include <functional>
#include <algorithm> #include <algorithm>
#include <cstdio> #include <cstdio>
@ -222,6 +227,11 @@ int CDMR2YSF::run()
m_tgUnlink = m_conf.getDMRNetworkTGUnlink(); m_tgUnlink = m_conf.getDMRNetworkTGUnlink();
std::string tgFile = m_conf.getDMRTGListFile(); std::string tgFile = m_conf.getDMRTGListFile();
LogInfo(HEADER1);
LogInfo(HEADER2);
LogInfo(HEADER3);
LogInfo(HEADER4);
LogInfo("General Parameters"); LogInfo("General Parameters");
LogInfo(" Default Dst TG: %u", m_dstid); LogInfo(" Default Dst TG: %u", m_dstid);
LogInfo(" Unlink TG: %u", m_tgUnlink); LogInfo(" Unlink TG: %u", m_tgUnlink);

View File

@ -43,6 +43,11 @@ const char* DEFAULT_INI_FILE = "NXDN2DMR.ini";
const char* DEFAULT_INI_FILE = "/etc/NXDN2DMR.ini"; const char* DEFAULT_INI_FILE = "/etc/NXDN2DMR.ini";
#endif #endif
const char* HEADER1 = "This software is for use on amateur radio networks only,";
const char* HEADER2 = "it is to be used for educational purposes only. Its use on";
const char* HEADER3 = "commercial networks is strictly prohibited.";
const char* HEADER4 = "Copyright(C) 2018 by CA6JAU, G4KLX and others";
#include <functional> #include <functional>
#include <algorithm> #include <algorithm>
#include <cstdio> #include <cstdio>
@ -209,6 +214,11 @@ int CNXDN2DMR::run()
} }
#endif #endif
LogInfo(HEADER1);
LogInfo(HEADER2);
LogInfo(HEADER3);
LogInfo(HEADER4);
m_callsign = m_conf.getCallsign(); m_callsign = m_conf.getCallsign();
m_nxdnTG = m_conf.getTG(); m_nxdnTG = m_conf.getTG();

View File

@ -46,6 +46,11 @@ const char* DEFAULT_INI_FILE = "YSF2DMR.ini";
const char* DEFAULT_INI_FILE = "/etc/YSF2DMR.ini"; const char* DEFAULT_INI_FILE = "/etc/YSF2DMR.ini";
#endif #endif
const char* HEADER1 = "This software is for use on amateur radio networks only,";
const char* HEADER2 = "it is to be used for educational purposes only. Its use on";
const char* HEADER3 = "commercial networks is strictly prohibited.";
const char* HEADER4 = "Copyright(C) 2018 by CA6JAU, EA7EE, G4KLX and others";
#include <functional> #include <functional>
#include <algorithm> #include <algorithm>
#include <cstdio> #include <cstdio>
@ -216,6 +221,11 @@ int CYSF2DMR::run()
} }
#endif #endif
LogInfo(HEADER1);
LogInfo(HEADER2);
LogInfo(HEADER3);
LogInfo(HEADER4);
m_callsign = m_conf.getCallsign(); m_callsign = m_conf.getCallsign();
m_suffix = m_conf.getSuffix(); m_suffix = m_conf.getSuffix();

View File

@ -43,6 +43,11 @@ const char* DEFAULT_INI_FILE = "YSF2NXDN.ini";
const char* DEFAULT_INI_FILE = "/etc/YSF2NXDN.ini"; const char* DEFAULT_INI_FILE = "/etc/YSF2NXDN.ini";
#endif #endif
const char* HEADER1 = "This software is for use on amateur radio networks only,";
const char* HEADER2 = "it is to be used for educational purposes only. Its use on";
const char* HEADER3 = "commercial networks is strictly prohibited.";
const char* HEADER4 = "Copyright(C) 2018 by CA6JAU, G4KLX and others";
#include <functional> #include <functional>
#include <algorithm> #include <algorithm>
#include <cstdio> #include <cstdio>
@ -207,6 +212,11 @@ int CYSF2NXDN::run()
} }
#endif #endif
LogInfo(HEADER1);
LogInfo(HEADER2);
LogInfo(HEADER3);
LogInfo(HEADER4);
m_callsign = m_conf.getCallsign(); m_callsign = m_conf.getCallsign();
m_suffix = m_conf.getSuffix(); m_suffix = m_conf.getSuffix();
m_defsrcid = m_conf.getNXDNId(); m_defsrcid = m_conf.getNXDNId();

View File

@ -98,6 +98,11 @@ const char* DEFAULT_INI_FILE = "YSF2P25.ini";
const char* DEFAULT_INI_FILE = "/etc/YSF2P25.ini"; const char* DEFAULT_INI_FILE = "/etc/YSF2P25.ini";
#endif #endif
const char* HEADER1 = "This software is for use on amateur radio networks only,";
const char* HEADER2 = "it is to be used for educational purposes only. Its use on";
const char* HEADER3 = "commercial networks is strictly prohibited.";
const char* HEADER4 = "Copyright(C) 2018 by CA6JAU, G4KLX and others";
#include <functional> #include <functional>
#include <algorithm> #include <algorithm>
#include <cstdio> #include <cstdio>
@ -259,6 +264,11 @@ int CYSF2P25::run()
} }
#endif #endif
LogInfo(HEADER1);
LogInfo(HEADER2);
LogInfo(HEADER3);
LogInfo(HEADER4);
m_callsign = m_conf.getCallsign(); m_callsign = m_conf.getCallsign();
m_defsrcid = m_conf.getP25Id(); m_defsrcid = m_conf.getP25Id();
m_dstid = m_conf.getP25DstId(); m_dstid = m_conf.getP25DstId();