|
@@ -1,5 +1,6 @@
|
|
#include "config.h"
|
|
#include "config.h"
|
|
|
|
|
|
|
|
+
|
|
void config_load_default(config_t *cfg)
|
|
void config_load_default(config_t *cfg)
|
|
{
|
|
{
|
|
config_add_int(cfg, "pin.data", 2);
|
|
config_add_int(cfg, "pin.data", 2);
|
|
@@ -13,8 +14,8 @@ void config_load_default(config_t *cfg)
|
|
config_add_string(cfg, "mount.file", "192.168.0.88");
|
|
config_add_string(cfg, "mount.file", "192.168.0.88");
|
|
config_add_string(cfg, "mount.src", "//192.168.0.88/nas");
|
|
config_add_string(cfg, "mount.src", "//192.168.0.88/nas");
|
|
config_add_string(cfg, "mount.dst", "/media/nas");
|
|
config_add_string(cfg, "mount.dst", "/media/nas");
|
|
- config_add_string(cfg, "mount.username", "ptitcois");
|
|
|
|
- config_add_string(cfg, "mount.password", "e1010898");
|
|
|
|
|
|
+ config_add_string(cfg, "mount.username", "your user");
|
|
|
|
+ config_add_string(cfg, "mount.password", "your password");
|
|
|
|
|
|
config_add_string(cfg, "storage.location", "/media/samba");
|
|
config_add_string(cfg, "storage.location", "/media/samba");
|
|
config_add_string(cfg, "storage.data", "data");
|
|
config_add_string(cfg, "storage.data", "data");
|
|
@@ -22,7 +23,7 @@ void config_load_default(config_t *cfg)
|
|
config_add_string(cfg, "storage.monthes", "monthes");
|
|
config_add_string(cfg, "storage.monthes", "monthes");
|
|
config_add_string(cfg, "storage.days", "days");
|
|
config_add_string(cfg, "storage.days", "days");
|
|
|
|
|
|
- config_add_string(cfg, "misc.pidfile", "/tmp/compteur_elec.cache");
|
|
|
|
|
|
+ config_add_string(cfg, "misc.pidfile", "/tmp/compteur_elec.pid");
|
|
}
|
|
}
|
|
|
|
|
|
opt_t* _config_get(config_t* cfg, const char* name)
|
|
opt_t* _config_get(config_t* cfg, const char* name)
|