From 45b134f897572318f182aa5faa348c5bd39fa7ae Mon Sep 17 00:00:00 2001 From: Jonathan McCrohan Date: Tue, 4 Dec 2012 01:12:15 +0000 Subject: ftpupload: decouple ftpupload from modbuslog Allow ftpupload to be used as an independent program. This enables it to be used by both modbuslog and phidgetcontrol. The ftp stanza in /etc/modbuslog has been split out into a separate ftpupload configuration file located at /etc/ftpupload. ftpupload now reads the $UPLOADTYPE variable to determine which type of upload to execute. If $UPLOADTYPE has not been set, ftpupload will default to modbuslog. --- src/ftphelper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ftphelper.c') diff --git a/src/ftphelper.c b/src/ftphelper.c index 69527db..889b9c5 100644 --- a/src/ftphelper.c +++ b/src/ftphelper.c @@ -64,7 +64,7 @@ int main(int argc, char *argv[]) { return 0; } - const char *configfile = "/etc/modbuslog.cfg"; + const char *configfile = "/etc/ftpupload.cfg"; config_t cfg; const char *ftp_server; const char *ftp_username; -- cgit v1.2.3