char* configString;
int bootpEnabled = 0;
int tftpEnabled = 0;
+ int mvprelayEnabled = 1;
configString = config.getValueString("General", "Bootp server enabled");
if (configString && (!strcasecmp(configString, "yes"))) bootpEnabled = 1;
if (configString && (!strcasecmp(configString, "yes"))) tftpEnabled = 1;
if (configString) delete[] configString;
+ configString = config.getValueString("General", "MVPRelay enabled");
+ if (configString && (strcasecmp(configString, "yes"))) mvprelayEnabled = 0;
+ if (configString) delete[] configString;
+
if (bootpEnabled)
{
}
// Start mvprelay thread
- if (!mvprelay.run())
+ if (mvprelayEnabled)
{
- log.log("Main", Log::CRIT, "Could not start MVPRelay");
- stop();
- return 0;
+ if (!mvprelay.run())
+ {
+ log.log("Main", Log::CRIT, "Could not start MVPRelay");
+ stop();
+ return 0;
+ }
+ else
+ {
+ log.log("Main", Log::INFO, "MVPRelay started");
+ }
}
else
{
- log.log("Main", Log::INFO, "MVPRelay started");
+ log.log("Main", Log::INFO, "Not starting MVPRelay");
}
-
+
// start thread here
if (!threadStart())
{
## path will be used - i.e. where this file is
# TFTP directory = /tftpboot
+
+## Change the following to "no" to disable the
+## built in mvprelay server
+
+# MVPRelay enabled = yes
+